From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by casper.infradead.org with esmtps (Exim 4.85 #2 (Red Hat Linux)) id 1aQcG2-0004iY-6n for barebox@lists.infradead.org; Tue, 02 Feb 2016 14:48:42 +0000 From: Sascha Hauer Date: Tue, 2 Feb 2016 15:48:04 +0100 Message-Id: <1454424497-7157-22-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1454424497-7157-1-git-send-email-s.hauer@pengutronix.de> References: <1454424497-7157-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 21/34] scripts: imx: Drop double check To: Barebox List We have the same "if (*line == '\0')" check twice. Remove one of them. Signed-off-by: Sascha Hauer --- 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@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox