9
0
Fork 0

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>
This commit is contained in:
Teresa Gámez 2014-09-11 17:04:49 +02:00 committed by Sascha Hauer
parent 22acbddd89
commit 48199fd57c
1 changed files with 2 additions and 2 deletions

View File

@ -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)