mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 00:29:50 +00: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) {
|
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)
|
|||||||
{
|
{
|
||||||
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. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user