Skip to contentSkip to conversation

kernel: cpu: style: Simplify bool comparison

PATCH New YANG LI 1 participant 1 message Jan 11, 2021 CPU hotplug

lore
Share & tools
lore

YANG LI

author
#0 lore raw

PATCH 1/1 kernel: cpu: style: Simplify bool comparison

Fix the following coccicheck warning:
./kernel/cpu.c:1824:5-23: WARNING: Comparison to bool

---
 kernel/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/cpu.c +1 -1
index 4e11e91..ad72a57 100644
@@ -1824,7 +1824,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);
Signature · 1 line
1.8.3.1