From 48199fd57c38e6acd63213334ef86119e16496c7 Mon Sep 17 00:00:00 2001 From: Teresa Gámez Date: Thu, 11 Sep 2014 17:04:49 +0200 Subject: commands: of_dump: Fix return value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In an error case the return value is set nicely but 0 is always beeing returned. Signed-off-by: Teresa Gámez Signed-off-by: Sascha Hauer --- commands/of_dump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/of_dump.c') 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) -- cgit v1.2.3