Skip to content

Commit

Permalink
rcu: Replace 1 with true
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
irenge authored and paulmckrcu committed Jun 29, 2020
1 parent d29e0b2 commit e40bb92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/rcu/update.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void rcu_end_inkernel_boot(void)
rcu_unexpedite_gp();
if (rcu_normal_after_boot)
WRITE_ONCE(rcu_normal, 1);
rcu_boot_ended = 1;
rcu_boot_ended = true;
}

/*
Expand Down

0 comments on commit e40bb92

Please sign in to comment.