We have the same "if (*line == '\0')" check twice. Remove one of them. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- scripts/imx/imx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/imx/imx.c b/scripts/imx/imx.c index 53f2bd1..0e260c4 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; -- 2.7.0.rc3 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox