diff mbox

[U-Boot,v5,05/13] cosmetic: remove unneeded curly braces

Message ID 1314805054-16250-6-git-send-email-jason.hobbs@calxeda.com
State Accepted
Headers show

Commit Message

Jason Hobbs Aug. 31, 2011, 3:37 p.m. UTC
This prevents a checkpatch warning in the patch to use isblank

Signed-off-by: Jason Hobbs <jason.hobbs@calxeda.com>
---
new in v4

changes in v5:
- none

 common/main.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

Comments

Wolfgang Denk Oct. 17, 2011, 8:18 p.m. UTC | #1
Dear "Jason Hobbs",

In message <1314805054-16250-6-git-send-email-jason.hobbs@calxeda.com> you wrote:
> This prevents a checkpatch warning in the patch to use isblank
> 
> Signed-off-by: Jason Hobbs <jason.hobbs@calxeda.com>
> ---
> new in v4
> 
> changes in v5:
> - none
> 
>  common/main.c |    6 ++----
>  1 files changed, 2 insertions(+), 4 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/common/main.c b/common/main.c
index 3adadfd..d812aa1 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;