From patchwork Fri Nov 22 17:35:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pintu Kumar X-Patchwork-Id: 13883470 Return-Path: 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 8F4D9E69185 for ; Fri, 22 Nov 2024 17:36:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 16BA66B008A; Fri, 22 Nov 2024 12:36:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 11D656B0092; Fri, 22 Nov 2024 12:36:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EFE976B0093; Fri, 22 Nov 2024 12:36:51 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id CFDD16B008A for ; Fri, 22 Nov 2024 12:36:51 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 70F9CC1931 for ; Fri, 22 Nov 2024 17:36:51 +0000 (UTC) X-FDA: 82814434542.23.97EFFBA Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by imf09.hostedemail.com (Postfix) with ESMTP id CDE2F140017 for ; Fri, 22 Nov 2024 17:36:11 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b="Ix iod5u"; spf=pass (imf09.hostedemail.com: domain of quic_pintu@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_pintu@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=1732296760; 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:in-reply-to: references:dkim-signature; bh=JvumQIHSZnVbuJEZ6nC12MuJtRABvCq5Eytz4+N4o9M=; b=4tCmKgtpgv2/GpL5xVRSVP45xrVfb84/7EdTJNEVkmLpm2xRsYydegqefDFw4I7kj4bmau ifJEhZtEGKXJj6pOcTJiXa48/+OnB0ONaH5KCGxf8E1QPq03c2hg6XYzC9qezFuNzXoeJF 7+UX9p1/J6tgN9X1ez1ZisTBuYk8STs= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b="Ix iod5u"; spf=pass (imf09.hostedemail.com: domain of quic_pintu@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_pintu@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1732296760; a=rsa-sha256; cv=none; b=S9HoDPz7jMlaZ6JJp2MDrRPsxjT1i7jIrdZ+0yM01KLmTv4HYFpn4lb9Lf/sey0WQT9Uke UVU6qMCxg5lQJx7/AGJlV6FDl2L2JLtldvTS0r14ph4E1Ve8CRMxpUwbdZYYfjJQANJA2M B/jvrLOCSGODKKjy+METg7UyDVwMtUY= Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4AMCeoj6025117; Fri, 22 Nov 2024 17:36:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-type:date:from:message-id:mime-version:subject:to; s= qcppdkim1; bh=JvumQIHSZnVbuJEZ6nC12MuJtRABvCq5Eytz4+N4o9M=; b=Ix iod5uuXvUEJL/cu1EyRGoUCOwUwnAG3hoabVGuS8Huh8Vt8Z1z3LCEkTDCoL22Yj /RqNS5n8QnxbjmqX17Lz0Trb8ym9eFDik76e4lpao1cvfq40vFdqyyA2rwDJeIV7 D/0vuJy5L+imCNG2HtY27hoq+GXxY13bJUZ7bCL91BGIBMSxTA2AsnN3gcGmOIVN imG+nuzCBtKNaf6PhlcCnWmzcsmMyLWu6fji4xTYnDOIB/QStNT+9l/ZXTOY3Hgq PUd/yWkFokXhs+Nc94yD1RSnkoYOjMHTglcUtrYa8DaB3KuBfq/Hz7fFcJNwPRyX +30hFFKGQb+/6x2jWYDQ== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43251nm3ec-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Nov 2024 17:36:47 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4AMHakV2003510 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Nov 2024 17:36:46 GMT Received: from hu-pintu-blr.qualcomm.com (10.80.80.8) 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, 22 Nov 2024 09:36:44 -0800 From: Pintu Kumar To: , , , CC: , Subject: [PATCH] mm/hugetlb_cgroup: avoid useless return in void function Date: Fri, 22 Nov 2024 23:05:58 +0530 Message-ID: <20241122173558.20670-1-quic_pintu@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: z3oV6t_BWKdOITMz1NrgrXXMKxU-HZyL X-Proofpoint-GUID: z3oV6t_BWKdOITMz1NrgrXXMKxU-HZyL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxscore=0 spamscore=0 impostorscore=0 phishscore=0 mlxlogscore=564 adultscore=0 malwarescore=0 bulkscore=0 clxscore=1015 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2411220148 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: CDE2F140017 X-Stat-Signature: raxtf1qzyjxq37pmi6e44b1zoww869g6 X-Rspam-User: X-HE-Tag: 1732296971-206269 X-HE-Meta: U2FsdGVkX1+iaRMjR53Kgw+Gkl0AxTqJYdG74aSgY9OwqDFua/lEVUtmsi98VEUKO5K8lzejxxPbwcAOHl30LmbUzuO/vzMUudQfwBqH3ZvvKBkN6mIcvJ4emC1Ju+IqbzEapaX+psDRUJzvOYE5TVAtvmOcPkKDg/H1Clacv1Vsb60r4Uudsse7w8D6naJvoYyiFGnRKJqctLsJjgrQf8SPksOkg6H2+aGko1bUO1YPCyagLRJh82K9HEiVvFhEgIYZJgmOFs3MpZVoWFe5Xv8Aa4Dxrhk7f05V0GsezFR9CNAlWfU5kYRRHSqPlXOtSGWjawvZJ3H82ov4Pz/LPuwGmi+V0pxZ2FMzmHsmO0t0QNYnBDbX1gnJMUv7Z9x3FE5o4T7dGUeb+uTYyGAcsqBLnpX1xSnz4j01O613ApS5E9zhFaCgx3YNL9C/jc57LkeY5i3V+uYyKkHTUBZ28omAlVUWdE57folZXXmakCj9TBClGuzJYa6tRzOmwhXf3AOmykfqaRsLrc6vTLXNkxiHCTxqKn1G+eHCIAM1SN2GjiDdNjsmmqym5JmIWGrPevfXHSsILzz6VGclQnt6XfFjUFQZQhfMW2NphYykkkoYS0iXQZiEIk/ldwdAOkBUj1bdUYFQNqd4fgyE0ipJTi8B/EmqKe4IspRlUF627hoPViCNla0AQgTcSo3kCvkCxVX7p5ulA28MeofybPq7/e+GAm6e06gxaFRSTKyxWUwWU0jhi00L4tHjrbhJ/1B+46ozmHQMshLVnbO0CaZEu+lDIb3jR6EgYTTRoGYc1iYJVd7kSuirSpuEld27er2gFTeU0Y+BO8/6Wdvhmh8Uc/pryxPVIr2laFackfTLtqI43piGCuOB2Z0fjH3eftusOTZkhwFPjGE7G6fmqdxVWyxBshCDG9oT16ECiXBE6CO7hr4P82QxQadq2i1+sNcUuGxnwXZkbGujj6bOVcN Sbuuo3WN 7WhS++3f43zA4I/QF4z6FvP98cjNABrToYNh0e8xPs1ZAd2fDtS/krZ+BA/4iTMqu8o9RE8k8kXWqcHmKO7rThOzw7logk/sHL+7KizY5EofHayOWvJ/ASxo580lPR5+jA/PQ6TpqsfpYrxLYcd+9moYtXVDHQBLNt//EmMRYQY/a1nRsoe3PWC+gq1Qxssq+FPxsXnuZkYseuGZQlOq6zr1gz4bYeSdQ1wFE+ZexFBRbWnwjC9Y8EP4I1ndjnW0MZkDs1jjKLjXzIyz+RPvYomyXDK/n+kaPgAXJ4ZWqh7u3S772H5eAJujl6LgK5KSwBVzIecZfayhCGISvnwAmHwgVkKbDNlYwQ8/zuFKhf2jTHlq/1d3n3BR7JC4wYrV+cAPIziTdbUZ+VJc= 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: List-Subscribe: List-Unsubscribe: The return statement at the end of void function is unnecessary. Just remove it as part of cleanup. Signed-off-by: Pintu Kumar --- mm/hugetlb_cgroup.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/hugetlb_cgroup.c b/mm/hugetlb_cgroup.c index d8d0e665caed..8abe7151df21 100644 --- a/mm/hugetlb_cgroup.c +++ b/mm/hugetlb_cgroup.c @@ -936,7 +936,6 @@ void hugetlb_cgroup_migrate(struct folio *old_folio, struct folio *new_folio) set_hugetlb_cgroup_rsvd(new_folio, h_cg_rsvd); list_move(&new_folio->lru, &h->hugepage_activelist); spin_unlock_irq(&hugetlb_lock); - return; } static struct cftype hugetlb_files[] = {