aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada2016-06-07 21:03:43 +0900
committerMasahiro Yamada2016-06-09 08:18:25 +0900
commit80630dad9d95f81a67d4b93e226a79e679393d31 (patch)
treeebe7b669032efb782900d0d5f3c8fd95bddc7cbb
parent7760b49fa7fd383094dd7c5566c1382021664e95 (diff)
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>
-rw-r--r--arch/arm/mach-uniphier/board_late_init.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-uniphier/board_late_init.c b/arch/arm/mach-uniphier/board_late_init.c
index 845f047b027..d9eeacbf3a6 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)