[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200330012450.312155-2-jbi.octave@gmail.com>
Date: Mon, 30 Mar 2020 02:24:47 +0100
From: Jules Irenge <jbi.octave@...il.com>
To: linux-kernel@...r.kernel.org
Cc: julia.lawall@...6.fr, boqun.feng@...il.com,
Thomas Gleixner <tglx@...utronix.de>,
Jiri Kosina <jkosina@...e.cz>,
Peter Zijlstra <peterz@...radead.org>,
Josh Poimboeuf <jpoimboe@...hat.com>,
Paolo Bonzini <pbonzini@...hat.com>,
Arnd Bergmann <arnd@...db.de>,
Eiichi Tsukata <devel@...ukata.com>,
Tyler Hicks <tyhicks@...onical.com>
Subject: [PATCH v2 1/4] cpu: Remove Comparison to bool
Coccinelle reports a warning inside __cpuhp_state_add_instance_cpuslocked()
WARNING: Comparison to bool
To fix this a comparison to a bool variable to false is removed
and replaced with the operator ! before the variable
Signed-off-by: Jules Irenge <jbi.octave@...il.com>
---
kernel/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/cpu.c b/kernel/cpu.c
index 9c706af713fb..97f8b79ba5f5 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -1682,7 +1682,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.25.1
Powered by blists - more mailing lists