diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-01-25 15:19:22 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-02 15:41:04 +0100 |
commit | 6fafba44e7541a2acc9c0357154482cfc3572183 (patch) | |
tree | 63bb3a0456ddc6d25917d443c1b289089a241de3 /scripts/imx/imx.c | |
parent | ba8898e63f2cb39afb03f2eb1dc2d8c6872f72b9 (diff) | |
download | barebox-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/imx/imx.c')
-rw-r--r-- | scripts/imx/imx.c | 3 |
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; |