From ce2d4c9532b338e39f033ef75ae57bcb71c3389e Mon Sep 17 00:00:00 2001 From: Jason Hobbs Date: Tue, 23 Aug 2011 11:06:53 +0000 Subject: [PATCH] cosmetic: remove unneeded curly braces This prevents a checkpatch warning in the patch to use isblank Signed-off-by: Jason Hobbs --- common/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/main.c b/common/main.c index 3adadfdaa0..d812aa186c 100644 --- a/common/main.c +++ b/common/main.c @@ -1097,9 +1097,8 @@ int parse_line (char *line, char *argv[]) while (nargs < CONFIG_SYS_MAXARGS) { /* skip any white space */ - while ((*line == ' ') || (*line == '\t')) { + while ((*line == ' ') || (*line == '\t')) ++line; - } if (*line == '\0') { /* end of line, no more args */ argv[nargs] = NULL; @@ -1112,9 +1111,8 @@ int parse_line (char *line, char *argv[]) argv[nargs++] = line; /* begin of argument string */ /* find end of string */ - while (*line && (*line != ' ') && (*line != '\t')) { + while (*line && (*line != ' ') && (*line != '\t')) ++line; - } if (*line == '\0') { /* end of line, no more args */ argv[nargs] = NULL; -- 2.30.2