Skip to content

Commit

Permalink
rcu: tree_plugin: Use bool function return values of true/false not 1/0
Browse files Browse the repository at this point in the history
Use the normal return values for bool functions

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
  • Loading branch information
Joe Perches authored and Paul E. McKenney committed May 27, 2015
1 parent cd73ca2 commit 5ce035f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/rcu/tree_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -3056,9 +3056,9 @@ static bool rcu_nohz_full_cpu(struct rcu_state *rsp)
if (tick_nohz_full_cpu(smp_processor_id()) &&
(!rcu_gp_in_progress(rsp) ||
ULONG_CMP_LT(jiffies, READ_ONCE(rsp->gp_start) + HZ)))
return 1;
return true;
#endif /* #ifdef CONFIG_NO_HZ_FULL */
return 0;
return false;
}

/*
Expand Down

0 comments on commit 5ce035f

Please sign in to comment.