summaryrefslogtreecommitdiffstats
path: root/commands/of_dump.c
diff options
context:
space:
mode:
authorTeresa Gámez <t.gamez@phytec.de>2014-09-11 17:04:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-09-12 07:42:29 +0200
commit48199fd57c38e6acd63213334ef86119e16496c7 (patch)
tree45ba83b20e8afdeb6638746fb9a8972d15a531e4 /commands/of_dump.c
parent22acbddd89518b3079ee54bbc5faabbca3ebc5d1 (diff)
downloadbarebox-48199fd57c38e6acd63213334ef86119e16496c7.tar.gz
barebox-48199fd57c38e6acd63213334ef86119e16496c7.tar.xz
commands: of_dump: Fix return value
In an error case the return value is set nicely but 0 is always beeing returned. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/of_dump.c')
-rw-r--r--commands/of_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/of_dump.c b/commands/of_dump.c
index 1222ebfd6b..513a4b88a0 100644
--- a/commands/of_dump.c
+++ b/commands/of_dump.c
@@ -34,7 +34,7 @@
static int do_of_dump(int argc, char *argv[])
{
int opt;
- int ret;
+ int ret = 0;
int fix = 0;
struct device_node *root = NULL, *node, *of_free = NULL;
char *dtbfile = NULL;
@@ -117,7 +117,7 @@ out:
if (of_free)
of_delete_node(of_free);
- return 0;
+ return ret;
}
BAREBOX_CMD_HELP_START(of_dump)