diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/bootm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/commands/bootm.c b/commands/bootm.c index 1e1dc52ebf..4f4cbb3ea9 100644 --- a/commands/bootm.c +++ b/commands/bootm.c @@ -202,10 +202,9 @@ static int bootm_open_oftree(struct image_data *data, char *oftree, int num) } fdt = xrealloc(fdt, size + 0x8000); - fdt_open_into(fdt, fdt, size + 0x8000); - - if (!fdt) { - printf("unable to read %s\n", oftree); + ret = fdt_open_into(fdt, fdt, size + 0x8000); + if (ret) { + printf("unable to parse %s\n", oftree); return -ENODEV; } |