mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 07:31:15 +00:00
cmd: fdt: Correct checking of configuration node
fit_conf_get_node() returns a negative value on error. Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c52bd0362d
commit
33c63cea5e
1 changed files with 1 additions and 1 deletions
|
@ -733,7 +733,7 @@ static int do_fdt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
|||
|
||||
gd->fdt_blob = blob;
|
||||
cfg_noffset = fit_conf_get_node(working_fdt, NULL);
|
||||
if (!cfg_noffset) {
|
||||
if (cfg_noffset < 0) {
|
||||
printf("Could not find configuration node: %s\n",
|
||||
fdt_strerror(cfg_noffset));
|
||||
return CMD_RET_FAILURE;
|
||||
|
|
Loading…
Reference in a new issue