mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
ARM: uniphier: check return code of setenv()
Because setenv() may fail, it is better to check its return code. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
7760b49fa7
commit
80630dad9d
1 changed files with 1 additions and 3 deletions
|
|
@ -56,9 +56,7 @@ static int uniphier_set_fdt_file(void)
|
|||
|
||||
strncat(dtb_name, ".dtb", buf_len);
|
||||
|
||||
setenv("fdt_file", dtb_name);
|
||||
|
||||
return 0;
|
||||
return setenv("fdt_file", dtb_name);
|
||||
}
|
||||
|
||||
int board_late_init(void)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue