aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joel Fernandes (Google) <joel@joelfernandes.org> 2023-07-29 14:27:36 +0000
committerGravatar Frederic Weisbecker <frederic@kernel.org> 2023-09-13 22:28:49 +0200
commit4502138acc8f4139c94ce0ec0eee926f8805fbbc (patch)
tree67183c0980992472e3e2772af0d3a56fd23f2307
parentsrcu: Fix error handling in init_srcu_struct_fields() (diff)
downloadlinux-4502138acc8f4139c94ce0ec0eee926f8805fbbc.tar.gz
linux-4502138acc8f4139c94ce0ec0eee926f8805fbbc.tar.bz2
linux-4502138acc8f4139c94ce0ec0eee926f8805fbbc.zip
rcu/tree: Remove superfluous return from void call_rcu* functions
The return keyword is not needed here. Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
-rw-r--r--kernel/rcu/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index cb1caefa8bd0..7c79480bfaa0 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -2713,7 +2713,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
@@ -2764,7 +2764,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);