]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
rcu: Replace assigned pointer ret value by corresponding boolean value
authorJules Irenge <jbi.octave@gmail.com>
Fri, 27 Mar 2020 21:23:53 +0000 (21:23 +0000)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 27 Apr 2020 18:01:16 +0000 (11:01 -0700)
commita66dbda7893f48b97d7406ae42fa29190aa672a0
treef3694f6a03c1d2b98729c9d6fcc7911ae875a92a
parent62ae19511f1efbe9f57346ca1f45e13b061a56ff
rcu: Replace assigned pointer ret value by corresponding boolean value

Coccinelle reports warnings at rcu_read_lock_held_common()

WARNING: Assignment of 0/1 to bool variable

To fix this,
the assigned  pointer ret values are replaced by corresponding boolean value.
Given that ret is a pointer of bool type

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/update.c