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
@ -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…
Reference in New Issue
Block a user