Commit 8c64415c authored by David S. Miller's avatar David S. Miller

sparc: Remove redundant tests in boot_flags_init().

The test:

	*commands && *commands == ' '

is equivalent to:

	*commands == ' '
Reported-by: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 89c9fea3
...@@ -148,7 +148,7 @@ static void __init boot_flags_init(char *commands) ...@@ -148,7 +148,7 @@ static void __init boot_flags_init(char *commands)
{ {
while (*commands) { while (*commands) {
/* Move to the start of the next "argument". */ /* Move to the start of the next "argument". */
while (*commands && *commands == ' ') while (*commands == ' ')
commands++; commands++;
/* Process any command switches, otherwise skip it. */ /* Process any command switches, otherwise skip it. */
......
...@@ -133,7 +133,7 @@ static void __init boot_flags_init(char *commands) ...@@ -133,7 +133,7 @@ static void __init boot_flags_init(char *commands)
{ {
while (*commands) { while (*commands) {
/* Move to the start of the next "argument". */ /* Move to the start of the next "argument". */
while (*commands && *commands == ' ') while (*commands == ' ')
commands++; commands++;
/* Process any command switches, otherwise skip it. */ /* Process any command switches, otherwise skip it. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment