summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-01-25 15:19:22 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-02-02 15:41:04 +0100
commit6fafba44e7541a2acc9c0357154482cfc3572183 (patch)
tree63bb3a0456ddc6d25917d443c1b289089a241de3 /scripts
parentba8898e63f2cb39afb03f2eb1dc2d8c6872f72b9 (diff)
downloadbarebox-6fafba44e7541a2acc9c0357154482cfc3572183.tar.gz
barebox-6fafba44e7541a2acc9c0357154482cfc3572183.tar.xz
scripts: imx: Drop double check
We have the same "if (*line == '\0')" check twice. Remove one of them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/imx/imx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/imx/imx.c b/scripts/imx/imx.c
index 53f2bd1eae..0e260c45dc 100644
--- a/scripts/imx/imx.c
+++ b/scripts/imx/imx.c
@@ -37,9 +37,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;