summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Dietrich <marvin24@gmx.de>2013-04-12 11:53:00 +0200
committerStephen Warren <swarren@nvidia.com>2013-04-12 13:09:18 -0600
commit79789fd80d5959147d60948984dfaa20a186bec7 (patch)
tree91ec740773a7c5cb7417d3d6a7cbfc7512fa1919
parent624cec685c0e5988513663174b3b5fe14fcfaadb (diff)
downloadcbootimage-79789fd80d5959147d60948984dfaa20a186bec7.tar.gz
Fix assert with help output only
This moves an assert down if only "-h" and not SOC is given on the command line. Signed-off-by: Marc Dietrich <marvin24@gmx.de> Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r--src/cbootimage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cbootimage.c b/src/cbootimage.c
index fad4d6a..937bac9 100644
--- a/src/cbootimage.c
+++ b/src/cbootimage.c
@@ -154,11 +154,11 @@ main(int argc, char *argv[])
if (process_command_line(argc, argv, &context) != 0)
return -EINVAL;
- assert(g_soc_config != NULL);
-
if (help_only)
return 1;
+ assert(g_soc_config != NULL);
+
g_soc_config->get_value(token_bct_size,
&context.bct_size,
context.bct);