[U-Boot] [PATCH v4 05/13] cosmetic: remove unneeded curly braces
Jason Hobbs
jason.hobbs at calxeda.com
Tue Aug 23 23:06:53 CEST 2011
This prevents a checkpatch warning in the patch to use isblank
Signed-off-by: Jason Hobbs <jason.hobbs at calxeda.com>
---
new in v4
common/main.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/common/main.c b/common/main.c
index e9e8350..bf5ddca 100644
--- a/common/main.c
+++ b/common/main.c
@@ -1091,9 +1091,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;
@@ -1106,9 +1105,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;
--
1.7.0.4
More information about the U-Boot
mailing list