This moves an assert down if only "-h" and not SOC is given on the
command line.

Signed-off-by: Marc Dietrich <[email protected]>
---
 src/cbootimage.c |    4 ++--
 1 file 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);
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to