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>
master
Masahiro Yamada 9 years ago
parent 7760b49fa7
commit 80630dad9d
  1. 4
      arch/arm/mach-uniphier/board_late_init.c

@ -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…
Cancel
Save