Skip to content

Commit 8f43d59

Browse files
irengepaulmckrcu
authored andcommitted
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 <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent a3ba497 commit 8f43d59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/rcu/rcutorture.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2185,7 +2185,7 @@ static void rcu_torture_barrier1cb(void *rcu_void)
21852185
static int rcu_torture_barrier_cbs(void *arg)
21862186
{
21872187
long myid = (long)arg;
2188-
bool lastphase = 0;
2188+
bool lastphase = false;
21892189
bool newphase;
21902190
struct rcu_head rcu;
21912191

0 commit comments

Comments
 (0)