diff options
author | Jason Hobbs <jason.hobbs@calxeda.com> | 2011-08-31 10:37:26 -0500 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2011-09-23 07:10:37 -0600 |
commit | 43f05efebbd09008bf413058f0f060687a972592 (patch) | |
tree | 9f2f9c8592eac1103377b614d28e930326a708d2 | |
parent | 01b5cfa995d9f618fd6b2318cef55e8e82c3720e (diff) |
cosmetic: remove unneeded curly braces
This prevents a checkpatch warning in the patch to use isblank
Signed-off-by: Jason Hobbs <jason.hobbs@calxeda.com>
-rw-r--r-- | common/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/common/main.c b/common/main.c index 3adadfdaa..d812aa186 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; |