diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2013-10-10 14:08:33 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-12-09 18:12:25 -0500 |
commit | f6f7ee9af7554e4d167ccd0ffe7cb8da0aa954f9 (patch) | |
tree | 114da9f32838b02d28cdb43ff7f57cebf7b3dbd8 /kernel/rcu/tree.c | |
parent | 3947909814f38d524829bc41bd4c11068a15f0cd (diff) |
rcu: Fix coccinelle warnings
This commit fixes the following coccinelle warning:
kernel/rcu/tree.c:712:9-10: WARNING: return of 0/1 in function
'rcu_lockdep_current_cpu_online' with return type bool
Return statements in functions returning bool should use
true/false instead of 1/0.
Generated by: coccinelle/misc/boolreturn.cocci
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/tree.c')
-rw-r--r-- | kernel/rcu/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 30499508c72e..f8c029971bb3 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
@@ -725,7 +725,7 @@ bool rcu_lockdep_current_cpu_online(void) | |||
725 | bool ret; | 725 | bool ret; |
726 | 726 | ||
727 | if (in_nmi()) | 727 | if (in_nmi()) |
728 | return 1; | 728 | return true; |
729 | preempt_disable(); | 729 | preempt_disable(); |
730 | rdp = this_cpu_ptr(&rcu_sched_data); | 730 | rdp = this_cpu_ptr(&rcu_sched_data); |
731 | rnp = rdp->mynode; | 731 | rnp = rdp->mynode; |