mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 06:34:11 +08:00
sparc: Remove redundant tests in boot_flags_init().
The test: *commands && *commands == ' ' is equivalent to: *commands == ' ' Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
89c9fea3c8
commit
8c64415cc1
@ -148,7 +148,7 @@ static void __init boot_flags_init(char *commands)
|
||||
{
|
||||
while (*commands) {
|
||||
/* Move to the start of the next "argument". */
|
||||
while (*commands && *commands == ' ')
|
||||
while (*commands == ' ')
|
||||
commands++;
|
||||
|
||||
/* Process any command switches, otherwise skip it. */
|
||||
|
@ -133,7 +133,7 @@ static void __init boot_flags_init(char *commands)
|
||||
{
|
||||
while (*commands) {
|
||||
/* Move to the start of the next "argument". */
|
||||
while (*commands && *commands == ' ')
|
||||
while (*commands == ' ')
|
||||
commands++;
|
||||
|
||||
/* Process any command switches, otherwise skip it. */
|
||||
|
Loading…
Reference in New Issue
Block a user