lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250221-rmv_return-v1-16-cc8dff275827@quicinc.com>
Date: Fri, 21 Feb 2025 05:02:21 -0800
From: Zijun Hu <quic_zijuhu@...cinc.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Will Deacon
	<will@...nel.org>,
        Aneesh Kumar K.V <aneesh.kumar@...nel.org>,
        Andrew Morton
	<akpm@...ux-foundation.org>,
        Nick Piggin <npiggin@...il.com>,
        Peter Zijlstra
	<peterz@...radead.org>, Arnd Bergmann <arnd@...db.de>,
        Thomas Gleixner
	<tglx@...utronix.de>,
        Herbert Xu <herbert@...dor.apana.org.au>,
        "David S.
 Miller" <davem@...emloft.net>,
        Greg Kroah-Hartman
	<gregkh@...uxfoundation.org>,
        "Rafael J. Wysocki" <rafael@...nel.org>,
        "Danilo Krummrich" <dakr@...nel.org>,
        Eric Dumazet <edumazet@...gle.com>, "Jakub Kicinski" <kuba@...nel.org>,
        Paolo Abeni <pabeni@...hat.com>, Simon
 Horman <horms@...nel.org>,
        Johannes Berg <johannes@...solutions.net>,
        "Jamal
 Hadi Salim" <jhs@...atatu.com>,
        Cong Wang <xiyou.wangcong@...il.com>, Jiri
 Pirko <jiri@...nulli.us>,
        Jason Gunthorpe <jgg@...pe.ca>, Leon Romanovsky
	<leon@...nel.org>,
        Linus Walleij <linus.walleij@...aro.org>,
        "Bartosz
 Golaszewski" <brgl@...ev.pl>, Lee Jones <lee@...nel.org>,
        Thomas Graf
	<tgraf@...g.ch>, Christoph Hellwig <hch@....de>,
        Marek Szyprowski
	<m.szyprowski@...sung.com>,
        Robin Murphy <robin.murphy@....com>,
        "Miquel
 Raynal" <miquel.raynal@...tlin.com>,
        Richard Weinberger <richard@....at>,
        Vignesh Raghavendra <vigneshr@...com>
CC: Zijun Hu <zijun_hu@...oud.com>, <linux-arch@...r.kernel.org>,
        <linux-mm@...ck.org>, <linux-kernel@...r.kernel.org>,
        <linux-crypto@...r.kernel.org>, <netdev@...r.kernel.org>,
        <linux-wireless@...r.kernel.org>, <linux-rdma@...r.kernel.org>,
        <linux-gpio@...r.kernel.org>, <linux-pm@...r.kernel.org>,
        <iommu@...ts.linux.dev>, <linux-mtd@...ts.infradead.org>,
        Zijun Hu
	<quic_zijuhu@...cinc.com>
Subject: [PATCH *-next 16/18] rhashtable: Remove needless return in three
 void APIs

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.

Signed-off-by: Zijun Hu <quic_zijuhu@...cinc.com>
---
 include/linux/rhashtable.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/linux/rhashtable.h b/include/linux/rhashtable.h
index 8463a128e2f4..6c85b28ea30b 100644
--- a/include/linux/rhashtable.h
+++ b/include/linux/rhashtable.h
@@ -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 */

-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ