Skip to content
Snippets Groups Projects
Commit 80630dad authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

ARM: uniphier: check return code of setenv()


Because setenv() may fail, it is better to check its return code.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 7760b49f
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment