Message ID | 20250221-rmv_return-v1-16-cc8dff275827@quicinc.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AB29C021AA for <linux-mm@archiver.kernel.org>; Fri, 21 Feb 2025 13:03:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7C0896B0099; Fri, 21 Feb 2025 08:03:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 74385280002; Fri, 21 Feb 2025 08:03:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 547EF280001; Fri, 21 Feb 2025 08:03:13 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 302F46B009B for <linux-mm@kvack.org>; Fri, 21 Feb 2025 08:03:13 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id DA86E1A0F06 for <linux-mm@kvack.org>; Fri, 21 Feb 2025 13:03:12 +0000 (UTC) X-FDA: 83143967424.09.F21F280 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by imf22.hostedemail.com (Postfix) with ESMTP id BB0B0C001C for <linux-mm@kvack.org>; Fri, 21 Feb 2025 13:03:10 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=JrxFvFyV; spf=pass (imf22.hostedemail.com: domain of quic_zijuhu@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_zijuhu@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1740142990; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=23zc97bNEojfrf7Aepw+jdTM5CqbRIhKkZBo1Y/VTQA=; b=pVenvb+y4raYjfAMog432SUOyl6LRKvzl5GyzA9dXITYxmaOGDk3gz5iFox76cpD5KOuTH TjDancYq7Ax0BouQEmtAprKFADY2Ti4YZbCvr5VwopUHwBV93de4PUElJcf29ordwCANSV SlSLAPZB8cOzJgLdNNTLs0JMexrYrpc= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=JrxFvFyV; spf=pass (imf22.hostedemail.com: domain of quic_zijuhu@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_zijuhu@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1740142990; a=rsa-sha256; cv=none; b=BuC/eK1QroYueh51YlOEKtZqrNWAEO+0mHWHWSTunVrvc0P5pSg7g0i1DeomC6Aekhz57U 9DOI1cVbjzt+K+bqD+9gzFv8ecoUM3xuPieGGE+hDGLfkkZiVxjJaoemv6aIbvq5zEoYyK v4is3lVr1taASuI56uhmf+QH5WSR974= Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 51LCth5u031375; Fri, 21 Feb 2025 13:02:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 23zc97bNEojfrf7Aepw+jdTM5CqbRIhKkZBo1Y/VTQA=; b=JrxFvFyVLAAmqDKi kYNLIHhaxo8Cj8UC54UO9/6+ZuVk4NreclcfZq+TrIuZaRffyaKLEcUKEuZYCNMu IbCa5Rgtk6JDT+yOvT3Y72tw8T03ns/DAHOpxJw21tYT6ZuogrjcAeMRitkbBCTz anJ0Cu/VNeW5s6pGTMisxOj3M58PgS9BTI+iwDpgE8PFnOyxUvFl7Zl1LTffAfG1 n3fBwWEXNU2IVIsgJ2oUh1Z2gwNYGBbKwRQduSCYSWOJmb8zhIY68a3L3IvAW1v9 YAOarG/pJMYc3tjovzowrAMT873PWtsFJ4QMv33RaCzl0pZ2YnKbkDnNgU676BUl SiwSkA== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44vyy5hyj0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Feb 2025 13:02:44 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 51LD2gWn020361 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Feb 2025 13:02:42 GMT Received: from hu-zijuhu-lv.qualcomm.com (10.49.16.6) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 21 Feb 2025 05:02:41 -0800 From: Zijun Hu <quic_zijuhu@quicinc.com> Date: Fri, 21 Feb 2025 05:02:21 -0800 Subject: [PATCH *-next 16/18] rhashtable: Remove needless return in three void APIs MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20250221-rmv_return-v1-16-cc8dff275827@quicinc.com> References: <20250221-rmv_return-v1-0-cc8dff275827@quicinc.com> In-Reply-To: <20250221-rmv_return-v1-0-cc8dff275827@quicinc.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Will Deacon <will@kernel.org>, Aneesh Kumar K.V <aneesh.kumar@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, Nick Piggin <npiggin@gmail.com>, Peter Zijlstra <peterz@infradead.org>, Arnd Bergmann <arnd@arndb.de>, Thomas Gleixner <tglx@linutronix.de>, Herbert Xu <herbert@gondor.apana.org.au>, "David S. Miller" <davem@davemloft.net>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J. Wysocki" <rafael@kernel.org>, "Danilo Krummrich" <dakr@kernel.org>, Eric Dumazet <edumazet@google.com>, "Jakub Kicinski" <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Johannes Berg <johannes@sipsolutions.net>, "Jamal Hadi Salim" <jhs@mojatatu.com>, Cong Wang <xiyou.wangcong@gmail.com>, Jiri Pirko <jiri@resnulli.us>, Jason Gunthorpe <jgg@ziepe.ca>, Leon Romanovsky <leon@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, "Bartosz Golaszewski" <brgl@bgdev.pl>, Lee Jones <lee@kernel.org>, Thomas Graf <tgraf@suug.ch>, Christoph Hellwig <hch@lst.de>, Marek Szyprowski <m.szyprowski@samsung.com>, Robin Murphy <robin.murphy@arm.com>, "Miquel Raynal" <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com> CC: Zijun Hu <zijun_hu@icloud.com>, <linux-arch@vger.kernel.org>, <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <linux-crypto@vger.kernel.org>, <netdev@vger.kernel.org>, <linux-wireless@vger.kernel.org>, <linux-rdma@vger.kernel.org>, <linux-gpio@vger.kernel.org>, <linux-pm@vger.kernel.org>, <iommu@lists.linux.dev>, <linux-mtd@lists.infradead.org>, Zijun Hu <quic_zijuhu@quicinc.com> X-Mailer: b4 0.14.1 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: mXmn2OcLX0UFAdy8phFaZcXV3YHhHqOj X-Proofpoint-GUID: mXmn2OcLX0UFAdy8phFaZcXV3YHhHqOj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-21_04,2025-02-20_02,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxlogscore=619 spamscore=0 bulkscore=0 clxscore=1015 suspectscore=0 adultscore=0 malwarescore=0 mlxscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2502100000 definitions=main-2502210096 X-Rspam-User: X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: BB0B0C001C X-Stat-Signature: tfh3on7czxdnhj7hzjm5a3ua6n6m3kxs X-HE-Tag: 1740142990-807696 X-HE-Meta: U2FsdGVkX180xSKfpCisJcwicpuIk5zBkQXojifA44jr2CXewDgJ1cpfDtN+qN3po751UQgz48BmQyP4P0lb5A3FvvIVGWCl5qXXPH/yJ0ruodfN9CR7D5T3h8eaTEV6qO8RtIGqVapp4S2ogb5uRIvW0VRzgwIFl5aB/j6T6TAWq4LjSAKGllhV3+q5sn7R8Uswx474oGX4W/AkiHZ36YMmPuc9/1hSicGAOJ2e+5e0veYd/TAjupVBF4354ovtG13uSczDyOSkmrisuOXxG6k7ChzpKroiBplwUsLAQfc5ZyF3r1utEs9XRcAXWJlZrmfdPv939TCoUyuv8y8lRYoPflipBglWg6L+yzKKhMvRtTeculsAB2prtx23gz2DvQRxsaYOaFlu+IwYHQTavuWEb6cOgdOa7oC85X3nUcQrzGTHc89ZKMGTP++d/3iwccpXmOCM3d+rSg2bAeK08vENH0fNkeSKtM+/CSMVcmDq/xeuSSrawhl0jm2T03d6ioFLXJgdZzyF7W4krmgC7+e1tADCKf0xL3jTKqAlIPMLM1546uvpgH7iTNfV2u2qMoo6bXb/8OXaVfZUsIY3esfynKThNz8TjNygyOg0GgUXpOCgT/mpla/NOhpaRmoYyJAQohIuSCqMgb1DhuqObrNEalNHhXGbhaIZKTDtBzS8GKNZyCtXnu+3CXGbR991foWupHmDkP+NNktFI+zL9MabOZPwTpVKrmFR0kKsbpaZdu2URg/Ai3JwXN/LYh7009eveojpdHupUVzSNDdNzdfbXA/3GjBl+BFM1IOKkm5DCKey/DLrC4CocUrZHaTPAWDoJz1HsAHaTMtdZHRmsv3CKOpAp7VQq2YbTKJC6mcgpv87Aihai252Vi7Su+8WKso4p6eT9Sbi70R5Y6Z4wysbRihnrn+2pJeDGSBESvd3yowtesRoyj+d+cFpUxHeVZ+ImmNQAFMA/b78Uac KvZqbl9u c1TfpBre1Lwf7zTHicpibWfoy7CyNZ+6wBf//TD6uTwiyB1c+vHRTqOZ1/zOC4ycjr6xbEZ3eNMH1OEnhkjMQU/3ljFcdz812qAQhhCMT218gj49o+z9a4ezebPjbDTjpBx4uFVFOLzxSDsO6kKUGa+1wWr30hxWRxC+XVWLwCo0VW3gembM11WyilJsuFOy0tV1E9GwTYdR5Ty82tEaI0cu6CTvuetkmPZkc4etPtohC+/djXdomdQ+El2unBiKUtLOcqOoTLNW1DVjTLj6VBGwYG/ZC3NxTfIp1H/vHOu2eDEFNRWNCcMnGOJeIXEvUz0NLN7YdP6ibqOwQR3js64uY1IhB8DWi9dz3U9O35aFHRaYxZwAQy7z1pscosdzn1HPg4MqAg+oDQo8vjoWTdP6RqQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Remove weird and needless 'return' for void APIs
|
expand
|
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 */
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@quicinc.com> --- include/linux/rhashtable.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)