diff options
Diffstat (limited to 'commands/oftree.c')
-rw-r--r-- | commands/oftree.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/commands/oftree.c b/commands/oftree.c index 7d4b08c9d3..76227a10b0 100644 --- a/commands/oftree.c +++ b/commands/oftree.c @@ -31,7 +31,6 @@ static int do_oftree(int argc, char *argv[]) { struct fdt_header *fdt = NULL; - size_t size; int opt; int probe = 0; char *load = NULL; @@ -76,16 +75,7 @@ static int do_oftree(int argc, char *argv[]) } if (load) { - fdt = read_file(load, &size); - if (!fdt) { - printf("unable to read %s\n", load); - return 1; - } - - root = of_unflatten_dtb(fdt, size); - - free(fdt); - + root = of_read_file(load); if (IS_ERR(root)) return PTR_ERR(root); |