]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
cosmetic: remove unneeded curly braces
authorJason Hobbs <jason.hobbs@calxeda.com>
Tue, 23 Aug 2011 11:06:53 +0000 (11:06 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 17 Oct 2011 20:25:34 +0000 (22:25 +0200)
This prevents a checkpatch warning in the patch to use isblank

Signed-off-by: Jason Hobbs <jason.hobbs@calxeda.com>
common/main.c

index 3adadfdaa0d6323b13d6a4ca1cb26ccd1a186b29..d812aa186cf3a1eba1b2a1cb89839ccc45885c66 100644 (file)
@@ -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;