diff options
author | Pranith Kumar <bobby.prani@gmail.com> | 2014-07-09 02:26:18 +0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-09-08 03:18:11 +0400 |
commit | 521d24ee598bd8a8b71d7ac76ce2c0da0e548406 (patch) | |
tree | 9663fb8e141b5c8b4e3fc6e82c71080a3b1a89ef /include/linux/rcupdate.h | |
parent | d0bc90fd37e50e4ea22c51c26947fd78c2a7a6c2 (diff) | |
download | linux-521d24ee598bd8a8b71d7ac76ce2c0da0e548406.tar.xz |
rcu: Return bool type in rcu_lockdep_current_cpu_online()
Return true instead of 1 in rcu_lockdep_current_cpu_online() as this
has bool as return type.
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux/rcupdate.h')
-rw-r--r-- | include/linux/rcupdate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index d231aa17b1d7..7e47e44bce03 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h @@ -349,7 +349,7 @@ bool rcu_lockdep_current_cpu_online(void); #else /* #if defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PROVE_RCU) */ static inline bool rcu_lockdep_current_cpu_online(void) { - return 1; + return true; } #endif /* #else #if defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PROVE_RCU) */ |