From: Jules Irenge Date: Mon, 1 Jun 2020 18:45:48 +0000 (+0100) Subject: rcu/rcutorture: Replace 0 with false X-Git-Tag: howlett/maple_spf/20210104~1405^2^2^7~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8f43d5911b38f00dfa46169dcb1feb1e101dd906;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Paul E. McKenney --- diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 59112077a6da0..37455a12898e6 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;