linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH cbootimage] Fix assert with help output only
@ 2013-04-12  9:53 Marc Dietrich
       [not found] ` <100595c7fe767c0766358d59896d28f4a1239d82.1365760185.git.marvin24-Mmb7MZpHnFY@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Dietrich @ 2013-04-12  9:53 UTC (permalink / raw)
  To: linux-tegra-u79uwXL29TY76Z2rM5mHXA; +Cc: Stephen Warren, Marc Dietrich

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

Signed-off-by: Marc Dietrich <marvin24-Mmb7MZpHnFY@public.gmane.org>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH cbootimage] Fix assert with help output only
       [not found] ` <100595c7fe767c0766358d59896d28f4a1239d82.1365760185.git.marvin24-Mmb7MZpHnFY@public.gmane.org>
@ 2013-04-12 19:11   ` Stephen Warren
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Warren @ 2013-04-12 19:11 UTC (permalink / raw)
  To: Marc Dietrich; +Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA, Allen Martin

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-12 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-12  9:53 [PATCH cbootimage] Fix assert with help output only Marc Dietrich
     [not found] ` <100595c7fe767c0766358d59896d28f4a1239d82.1365760185.git.marvin24-Mmb7MZpHnFY@public.gmane.org>
2013-04-12 19:11   ` Stephen Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).