[PATCH 17/23] scripts: imx: Drop double check

Sascha Hauer s.hauer at pengutronix.de
Fri Jan 29 02:43:57 PST 2016


We have the same "if (*line == '\0')" check twice. Remove one of them.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 scripts/imx/imx.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/scripts/imx/imx.c b/scripts/imx/imx.c
index fa705ff..79abed2 100644
--- a/scripts/imx/imx.c
+++ b/scripts/imx/imx.c
@@ -35,9 +35,6 @@ static int parse_line(char *line, char *argv[])
 		while ((*line == ' ') || (*line == '\t'))
 			++line;
 
-		if (*line == '\0')	/* end of line, no more args	*/
-			argv[nargs] = NULL;
-
 		if (*line == '\0') {	/* end of line, no more args	*/
 			argv[nargs] = NULL;
 			return nargs;
-- 
2.7.0.rc3




More information about the barebox mailing list