[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20201201070357.851-1-huangshuosheng@allwinnertech.com>
Date: Tue, 1 Dec 2020 15:03:57 +0800
From: Shuosheng Huang <huangshuosheng@...winnertech.com>
To: jaegeuk@...nel.org, chao@...nel.org
Cc: linux-f2fs-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org, tiny.windzz@...il.com
Subject: [PATCH] f2fs: Remove unnecessary unlikely()
From: Yangtao Li <tiny.windzz@...il.com>
WARN_ON() already contains an unlikely(), so it's not necessary
to use unlikely.
Signed-off-by: Yangtao Li <tiny.windzz@...il.com>
---
fs/f2fs/f2fs.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index cb700d797296..9f33a508fe51 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -33,10 +33,8 @@
#else
#define f2fs_bug_on(sbi, condition) \
do { \
- if (unlikely(condition)) { \
- WARN_ON(1); \
+ if (WARN_ON(condition)) \
set_sbi_flag(sbi, SBI_NEED_FSCK); \
- } \
} while (0)
#endif
--
2.28.0
Powered by blists - more mailing lists