From patchwork Sun Nov 24 14:30:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiale Yang <295107659@qq.com> X-Patchwork-Id: 13884141 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 0ABA7E668B5 for ; Sun, 24 Nov 2024 14:37:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 380E46B0082; Sun, 24 Nov 2024 09:37:10 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 30A386B0083; Sun, 24 Nov 2024 09:37:10 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1AB456B0085; Sun, 24 Nov 2024 09:37:10 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id EF8B36B0082 for ; Sun, 24 Nov 2024 09:37:09 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id A3311AF28A for ; Sun, 24 Nov 2024 14:37:09 +0000 (UTC) X-FDA: 82821240894.07.38CEAF2 Received: from xmbghk7.mail.qq.com (xmbghk7.mail.qq.com [43.163.128.49]) by imf29.hostedemail.com (Postfix) with ESMTP id 4D7C012000C for ; Sun, 24 Nov 2024 14:37:03 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=qq.com header.s=s201512 header.b=jqQiHN9B; spf=pass (imf29.hostedemail.com: domain of 295107659@qq.com designates 43.163.128.49 as permitted sender) smtp.mailfrom=295107659@qq.com; dmarc=pass (policy=quarantine) header.from=qq.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1732459027; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=zQC6NaOKMV7ZIDxq/pvImsHvIGeLGjRZKnaH2HH60ig=; b=cAlVdfPjVRZXENzJH3MibnweXxAyf55QKrLCgbkxD0bJxJ2eJf/qUURLFvcsuRRLgnquGp Fy8CawIkOp2Snze+er3dWjOsWQlCjBA/eELl160K2j+iiR1oQ04FdUeD+XO9f/T6B+GhNe o346VadLZbXVUBFtQAz/mvtz1MTEB4E= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1732459027; a=rsa-sha256; cv=none; b=2FkyR14n+uHcB56AeFz8t9vVhLTd7Up43SC9d5YUTZI2xEIRrrCPAYWgNnqXWWGoJtJcbS YaY7MdienoN4MKsl9S2FbzQ561tzqF5ebbEgbg+bcqkZAtOt2LLHJYOJ2x1AGiho/wxxl0 EuCpu7wuuRdfr+O0LDhUO4cXkYqFW+c= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=qq.com header.s=s201512 header.b=jqQiHN9B; spf=pass (imf29.hostedemail.com: domain of 295107659@qq.com designates 43.163.128.49 as permitted sender) smtp.mailfrom=295107659@qq.com; dmarc=pass (policy=quarantine) header.from=qq.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1732459019; bh=zQC6NaOKMV7ZIDxq/pvImsHvIGeLGjRZKnaH2HH60ig=; h=From:To:Cc:Subject:Date; b=jqQiHN9BW2y/z6ufCR5TBGFPXeMYmP+c2xDFol2IPZvXgT7WZfnLHjy1WmGnTAsdI A5L72CMwPuSm2YJ2qnR3Qo9aCLLuLvuPVd7ZsHutsq5XJs6XjEkbCSHraioV+qltqG 7GnE2ls8EGQZ7Kl9aLqrqk3JXqPfXUXaK1GEyYn4= Received: from archlinux-sandisk.localdomain ([220.176.232.51]) by newxmesmtplogicsvrszc13-0.qq.com (NewEsmtp) with SMTP id 7B02E2C9; Sun, 24 Nov 2024 22:30:48 +0800 X-QQ-mid: xmsmtpt1732458648ta73d9xvs Message-ID: X-QQ-XMAILINFO: MwqrwaLzgdebDvba6S6v4Yq9FHRCZSb0C8uoR9YkM3Wa07av6DQc46J76mZ+X0 6qY+c//GQ5BtAib0Z8G3iK5yQ5gvxyvZr33nHTXCj25klNSXiKO1ytOWE3CuSMphK7ZU0/dViA5t 6jgZNtEYtuclnfZKX3VFO2p+80jK0Z641sYAhqILPNqC7rzRJvFU3W5nhqhWtAEdlBlZyXgJzlDT kzZfu+K4toPezFWLf24E6e80V2ulDipIYF3vJ/zaMUFvH2zgka4f+rYfnMw43FQuAIKNIRzikLu4 IAn05NC5aADUuavg1Cz7Ewanm+1pXZiQ3KGLNDNZbyA21Lmuj1pQz9jf8M82rdsOAi+nehSF3wkJ fyIWOQv0MA7KBWXKjNl2EA3UYWmgbWLZ73fl9XDeokS+A5GGq9lZ6f963HON+9L5Zl7EAJqbJvTq ARnKbRpvZmLopljku62TpUPc22iATJq5fcuZpwmcWcPEpgHbqK551VidkEZ8wDl3J+LJn49oN2y7 SekVELq5mPMJUXYWSzJ4BCYhzfuk/RGQarkAYnQ1qyBvX4/vy5mtG2FbWTrdjM2L11Q3PyReWJ8t S5GBAmP0JRzpaDzFz8I4VUSWOO7I79KIG1+P6/bYLMz50vpkdfRj/AQo/51DOToKMbs4wjJTLrRO gxM78dQ28OTfrgZwUD82+ScAvJPBx538rn6T+XvlM9OezzMhNgYmyiu9SM1E81wb1tvazSmYV+q6 JmmPmSmQ84MXNdJi62Kbg61LuQpIXhIccknP/z0Ko/3QwYBGlVXlg4J50JeDFiQMqCeNCiPksIFK jXg3tLA6cEDx7mamFVAX7dO7s01abkvh85x1KBTdowBgVR9vbIwsQkM7p6fF09LTdTjbo4PE3FJf BeI5Sdy7OesIgpWmaIh57bby3TcN7So3QtTNcsUXD3MtGM8n5eEOc= X-QQ-XMRINFO: Mp0Kj//9VHAxr69bL5MkOOs= From: Jiale Yang <295107659@qq.com> To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jiale Yang <295107659@qq.com> Subject: [PATCH] mm: Remove braces for single statement block Date: Sun, 24 Nov 2024 22:30:36 +0800 X-OQ-MSGID: <20241124143036.1572-1-295107659@qq.com> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 X-Rspamd-Server: rspam10 X-Stat-Signature: msd431tn57bqkzwaxgjaz3r5pfqhi4td X-Rspamd-Queue-Id: 4D7C012000C X-Rspam-User: X-HE-Tag: 1732459023-890201 X-HE-Meta: U2FsdGVkX18sUJK5Kf4+YIsNmZ39c2uhNxOqN99+rJrVvjctBzr5bTFMG7baPiHXHdlfnwVEL3jZJIGrWeVAGVYH4hGJwLsHMI5XF2qHIQs5CzE0YjHGUjFff4dLOf2mpmbvb8is32BW6RWsJcBw0q2SLU7hzuGd7FnVkyLqNQ80XwlBQP/isSCmY7bZbobvFlmkiUuvUF8Ckbnr78flPjC+w7c3zyR2DSV8wnYOvIkflJNQNKCqzZMf77PepwiecY1jjh/OSdjfQirjtbOx61oIXCfrt5QXh/V4R8iqFU86oLpjCS1Cq/7eW03cb5HEoCF632WG2+000xKG42kLxtLtoKwuQe5lIi3i/jpNGXLf7JsQZq20f44P6XkJYpEysB/encld8LAiv8Zw+I+l2cWHorH3e2vUawRyzrWEXum9Ljp0zK05OD7ONpkFltsWrIGHLkxD9+Uqw8sIwnJBNi5aAxdowch6lEzu7Rt2YSo3ujTbFDrvH38W/sXpXnWap8S2tLVetaqI7iiJZoUy7y59sT/wEY13TbNv18DrD3C5cEMqrFrh6aBAQZjfZSHyaYYzxJNodhHndVeMXhaPJAKKWd43AunHD1jmnYc6E3pfJQYgmW69svUddk4M807A4mWLRcc9Re13qb04hLUl+rfG99+CzhVBO5fbE3q3qLK4xRsIeenKZYXfhgW82psH+K1GZaTkNDJeWgm0fVSRXD0MtaW2ZE0Qh2JBUTq7O6IhlGWizirt6RAyUyy6ctf4wrpDQZh5P0qxHLR1+/yBj2eSwLbgVsnD7tAIY6ylk1D5GntA+PHMbxAph41HfUj4TUDAlCu+7iuwJ5wdLVRdkTV22rZW1w9jis8ZYiSi3Y0EeNGt5G8vItNFhSB/oTCbcF38qN+rcA4cSThf82J3gU6GxM3t30mDZRO+lioAcNFA4CKmoc4CDX3+bQoHqAO9po5aWnSh0Uni5ArsYWu MlfHwB2a PUcOYvqxbQr/6zelngm1GQB3C4e1yUdUNZhFpA2yf2r7ZCMFynd06x8mBMHO+yp16/SiB90+gv0AGFM1R+HrTTxBRT9Vuoz2rrOBtIR7IJoFCu28bum8sPldezFUUBA4B5fo0MdJTrv6u+MDO22WCn6nc0xB5T6tufbfeiwpcXRghs6f/iTFbEdO9VHuE9Nt1dInsO8wDfjcYyRKdTj6St0eBGDy4QpDzHWkg X-Bogosity: Ham, tests=bogofilter, spamicity=0.222902, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Linux kernel coding style say braces are not necessary if a block has only one statement. So remove it. Signed-off-by: Jiale Yang <295107659@qq.com> --- mm/page_alloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index a8cd54c02..4915b5d31 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6877,9 +6877,8 @@ bool put_page_back_buddy(struct page *page) ClearPageHWPoisonTakenOff(page); __free_one_page(page, pfn, zone, 0, migratetype, FPI_NONE); - if (TestClearPageHWPoison(page)) { + if (TestClearPageHWPoison(page)) ret = true; - } } spin_unlock_irqrestore(&zone->lock, flags);