aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel/rcu
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2020-06-01 19:45:48 +0100
committerPaul E. McKenney <paulmck@kernel.org>2020-06-29 12:01:44 -0700
commit8f43d5911b38f00dfa46169dcb1feb1e101dd906 (patch)
tree853a27fb8326f22716de1a405e6d25a04f569f52 /kernel/rcu
parenttorture: Add --allcpus argument to the kvm.sh script (diff)
downloadwireguard-linux-8f43d5911b38f00dfa46169dcb1feb1e101dd906.tar.xz
wireguard-linux-8f43d5911b38f00dfa46169dcb1feb1e101dd906.zip
rcu/rcutorture: Replace 0 with false
Coccinelle reports a warning WARNING: Assignment of 0/1 to bool variable The root cause is that the variable lastphase is a bool, but is initialised with integer 0. This commit therefore replaces the 0 with a false. Signed-off-by: Jules Irenge <jbi.octave@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu')
-rw-r--r--kernel/rcu/rcutorture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c
index 59112077a6da..37455a12898e 100644
--- a/kernel/rcu/rcutorture.c
+++ b/kernel/rcu/rcutorture.c
@@ -2185,7 +2185,7 @@ static void rcu_torture_barrier1cb(void *rcu_void)
static int rcu_torture_barrier_cbs(void *arg)
{
long myid = (long)arg;
- bool lastphase = 0;
+ bool lastphase = false;
bool newphase;
struct rcu_head rcu;