Skip to content

Commit e40bb92

Browse files
irengepaulmckrcu
authored andcommitted
rcu: Replace 1 with true
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 1. This commit therefore replaces the 1 with a true. Signed-off-by: Jules Irenge <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent d29e0b2 commit e40bb92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/rcu/update.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ void rcu_end_inkernel_boot(void)
207207
rcu_unexpedite_gp();
208208
if (rcu_normal_after_boot)
209209
WRITE_ONCE(rcu_normal, 1);
210-
rcu_boot_ended = 1;
210+
rcu_boot_ended = true;
211211
}
212212

213213
/*

0 commit comments

Comments
 (0)