diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-10 15:05:20 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-19 11:48:17 +0100 |
commit | 4979d8e9d5f6bc51700ca0f9e4ceaf153bd9f77e (patch) | |
tree | be341355cd5f265ec95211c116572a808806bd2f /commands/oftree.c | |
parent | 875430927dfbdb0bb7653c0bba29862e57fa0e85 (diff) | |
download | barebox-4979d8e9d5f6bc51700ca0f9e4ceaf153bd9f77e.tar.gz barebox-4979d8e9d5f6bc51700ca0f9e4ceaf153bd9f77e.tar.xz |
of: remove unused barebox_fdt
barebox_fdt should once become the pointer to the barebox internal
devicetree. Since barebox has its own internal devicetree format
this was never used. remove it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/oftree.c')
-rw-r--r-- | commands/oftree.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/commands/oftree.c b/commands/oftree.c index b9d3c7bf22..17af9eb581 100644 --- a/commands/oftree.c +++ b/commands/oftree.c @@ -62,8 +62,6 @@ static int do_oftree(int argc, char *argv[]) } break; case 'f': - free(barebox_fdt); - barebox_fdt = NULL; return 0; case 'n': node = optarg; @@ -88,12 +86,7 @@ static int do_oftree(int argc, char *argv[]) fdt_print(fdt, node); free(fdt); } else { - if (barebox_fdt) { - fdt_print(barebox_fdt, node); - return 0; - } else { - return 1; - } + return 1; } return 0; } |