[PATCH cbootimage] Fix assert with help output only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Marc Dietrich <marvin24@xxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux