[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tencent_B68357134C27627076BD7E44834D9E2C6D09@qq.com>
Date: Sun, 24 Nov 2024 22:30:36 +0800
From: Jiale Yang <295107659@...com>
To: akpm@...ux-foundation.org
Cc: linux-mm@...ck.org,
linux-kernel@...r.kernel.org,
Jiale Yang <295107659@...com>
Subject: [PATCH] mm: Remove braces for single statement block
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@...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);
--
2.47.0
Powered by blists - more mailing lists