[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181201080444.9305-1-wen.yang99@zte.com.cn>
Date: Sat, 1 Dec 2018 16:04:44 +0800
From: Wen Yang <wen.yang99@....com.cn>
To: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...nel.org>,
Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
Josh Poimboeuf <jpoimboe@...hat.com>
Cc: linux-kernel@...r.kernel.org, zhong.weidong@....com.cn,
Wen Yang <wen.yang99@....com.cn>,
"Peter Zijlstra (Intel)" <peterz@...raded.org>,
Peter Zijlstra <peterz@...radead.org>,
Mukesh Ojha <mojha@...eaurora.org>
Subject: [PATCH] cpu: Bool tests don't need comparisons
This is the patch to the file cpu.c
which fixes the following coccinelle warning:
WARNING: Comparison to bool
Signed-off-by: Wen Yang <wen.yang99@....com.cn>
CC: Thomas Gleixner <tglx@...utronix.de>
CC: Ingo Molnar <mingo@...nel.org>
CC: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>
CC: Josh Poimboeuf <jpoimboe@...hat.com>
CC: "Peter Zijlstra (Intel)" <peterz@...raded.org>
CC: Peter Zijlstra <peterz@...radead.org>
CC: Mukesh Ojha <mojha@...eaurora.org>
CC: linux-kernel@...r.kernel.org
---
kernel/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/cpu.c b/kernel/cpu.c
index 91d5c38eb7e5..5bdd7e150a11 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -1650,7 +1650,7 @@ int __cpuhp_state_add_instance_cpuslocked(enum cpuhp_state state,
lockdep_assert_cpus_held();
sp = cpuhp_get_step(state);
- if (sp->multi_instance == false)
+ if (!sp->multi_instance)
return -EINVAL;
mutex_lock(&cpuhp_state_mutex);
--
2.19.1
Powered by blists - more mailing lists