diff mbox series

mm: Remove braces for single statement block

Message ID tencent_B68357134C27627076BD7E44834D9E2C6D09@qq.com (mailing list archive)
State New
Headers show
Series mm: Remove braces for single statement block | expand

Commit Message

Jiale Yang Nov. 24, 2024, 2:30 p.m. UTC
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 mbox series

Patch

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);