diff options
author | David S. Miller <davem@davemloft.net> | 2017-05-03 08:28:48 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-03 08:28:48 -0700 |
commit | 8c64415cc1f5794c02b95dee10084fa8a4ee3cfe (patch) | |
tree | bae904dddaeeecacbe10e572bd92d629c35ec271 /arch/sparc/kernel/setup_64.c | |
parent | 89c9fea3c8034cdb2fd745f551cde0b507fd6893 (diff) | |
download | talos-op-linux-8c64415cc1f5794c02b95dee10084fa8a4ee3cfe.tar.gz talos-op-linux-8c64415cc1f5794c02b95dee10084fa8a4ee3cfe.zip |
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>
Diffstat (limited to 'arch/sparc/kernel/setup_64.c')
-rw-r--r-- | arch/sparc/kernel/setup_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/setup_64.c b/arch/sparc/kernel/setup_64.c index 6b7331d198e9..422b17880955 100644 --- a/arch/sparc/kernel/setup_64.c +++ b/arch/sparc/kernel/setup_64.c @@ -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. */ |