From: Masahiro Yamada Date: Tue, 7 Jun 2016 12:03:43 +0000 (+0900) Subject: ARM: uniphier: check return code of setenv() X-Git-Tag: v2016.07-rc2~86 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=80630dad9d95f81a67d4b93e226a79e679393d31;p=u-boot ARM: uniphier: check return code of setenv() Because setenv() may fail, it is better to check its return code. Signed-off-by: Masahiro Yamada --- diff --git a/arch/arm/mach-uniphier/board_late_init.c b/arch/arm/mach-uniphier/board_late_init.c index 845f047b02..d9eeacbf3a 100644 --- a/arch/arm/mach-uniphier/board_late_init.c +++ b/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)