]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
rcu/tree: Remove superfluous return from void call_rcu* functions
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Sat, 29 Jul 2023 14:27:36 +0000 (14:27 +0000)
committerFrederic Weisbecker <frederic@kernel.org>
Wed, 13 Sep 2023 20:28:49 +0000 (22:28 +0200)
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>
kernel/rcu/tree.c

index cb1caefa8bd0708181c0793018cf13b46cb683b4..7c79480bfaa04e4bb11b5a0ca6e9f6acf614a61b 100644 (file)
@@ -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);