提交 8c64415c 编写于 作者: D David S. Miller

sparc: Remove redundant tests in boot_flags_init().

The test:

	*commands && *commands == ' '

is equivalent to:

	*commands == ' '
Reported-by: NDavid Binderman <dcb314@hotmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 89c9fea3
......@@ -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. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册