diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2020-06-01 19:45:49 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-06-29 11:58:51 -0700 |
commit | e40bb921119814c6f746891af9cd37eccda616a4 (patch) | |
tree | c3748526db60e21f93aae3cc8841e9eb27f38bba /kernel/rcu/update.c | |
parent | d29e0b26b020422cc51b5b51733cc50fcf443965 (diff) | |
download | linux-e40bb921119814c6f746891af9cd37eccda616a4.tar.gz linux-e40bb921119814c6f746891af9cd37eccda616a4.tar.bz2 linux-e40bb921119814c6f746891af9cd37eccda616a4.zip |
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 <jbi.octave@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/update.c')
-rw-r--r-- | kernel/rcu/update.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c index ca17b771ad60..a0ba8858dd35 100644 --- a/kernel/rcu/update.c +++ b/kernel/rcu/update.c @@ -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; } /* |