Skip to content

Commit

Permalink
rcu/tree: Remove superfluous return from void call_rcu* functions
Browse files Browse the repository at this point in the history
mainline inclusion
from mainline-v6.7-rc1
category: performance

The return keyword is not needed here.

Signed-off-by: Joel Fernandes (Google) <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
(cherry picked from commit 4502138)
  • Loading branch information
joelagnel authored and opsiff committed Dec 24, 2024
1 parent 6aa25f3 commit cd1c0f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/rcu/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -2775,7 +2775,7 @@ __call_rcu_common(struct rcu_head *head, rcu_callback_t func, bool lazy_in)
*/
void call_rcu_hurry(struct rcu_head *head, rcu_callback_t func)
{
return __call_rcu_common(head, func, false);
__call_rcu_common(head, func, false);
}
EXPORT_SYMBOL_GPL(call_rcu_hurry);
#endif
Expand Down Expand Up @@ -2826,7 +2826,7 @@ EXPORT_SYMBOL_GPL(call_rcu_hurry);
*/
void call_rcu(struct rcu_head *head, rcu_callback_t func)
{
return __call_rcu_common(head, func, IS_ENABLED(CONFIG_RCU_LAZY));
__call_rcu_common(head, func, IS_ENABLED(CONFIG_RCU_LAZY));
}
EXPORT_SYMBOL_GPL(call_rcu);

Expand Down

0 comments on commit cd1c0f7

Please sign in to comment.