* [PATCH] mm: Remove braces for single statement block
@ 2024-11-24 14:30 Jiale Yang
0 siblings, 0 replies; only message in thread
From: Jiale Yang @ 2024-11-24 14:30 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, linux-kernel, Jiale Yang
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);
--
2.47.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-24 14:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-24 14:30 [PATCH] mm: Remove braces for single statement block Jiale Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox