diff mbox

[cbootimage] Fix assert with help output only

Message ID 100595c7fe767c0766358d59896d28f4a1239d82.1365760185.git.marvin24@gmx.de
State Accepted, archived
Headers show

Commit Message

Marc Dietrich April 12, 2013, 9:53 a.m. UTC
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>
---
 src/cbootimage.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Stephen Warren April 12, 2013, 7:11 p.m. UTC | #1
On 04/12/2013 03:53 AM, Marc Dietrich wrote:
> This moves an assert down if only "-h" and not SOC is given on the
> command line.

I have applied this.
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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