]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rhashtable: remove needless return in three void APIs
authorZijun Hu <quic_zijuhu@quicinc.com>
Fri, 21 Feb 2025 13:02:21 +0000 (05:02 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Mar 2025 06:24:15 +0000 (23:24 -0700)
Remove needless 'return' in the following void APIs:

 rhltable_walk_enter()
 rhltable_free_and_destroy()
 rhltable_destroy()

Since both the API and callee involved are void functions.

Link: https://lkml.kernel.org/r/20250221-rmv_return-v1-16-cc8dff275827@quicinc.com
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/rhashtable.h

index 8463a128e2f48fb2b48b68a10e32ba98b599929b..6c85b28ea30bd8ed28412951e3b56e298d9eb7da 100644 (file)
@@ -1259,7 +1259,7 @@ static inline int rhashtable_replace_fast(
 static inline void rhltable_walk_enter(struct rhltable *hlt,
                                       struct rhashtable_iter *iter)
 {
-       return rhashtable_walk_enter(&hlt->ht, iter);
+       rhashtable_walk_enter(&hlt->ht, iter);
 }
 
 /**
@@ -1275,12 +1275,12 @@ static inline void rhltable_free_and_destroy(struct rhltable *hlt,
                                                             void *arg),
                                             void *arg)
 {
-       return rhashtable_free_and_destroy(&hlt->ht, free_fn, arg);
+       rhashtable_free_and_destroy(&hlt->ht, free_fn, arg);
 }
 
 static inline void rhltable_destroy(struct rhltable *hlt)
 {
-       return rhltable_free_and_destroy(hlt, NULL, NULL);
+       rhltable_free_and_destroy(hlt, NULL, NULL);
 }
 
 #endif /* _LINUX_RHASHTABLE_H */