aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYangtao Li2020-12-01 15:17:39 +0800
committerJaegeuk Kim2020-12-02 22:00:23 -0800
commitdb48965264110dd74d1436fc21dac328d04385d2 (patch)
treec77bc153b20dc7529d1bca46fdeeb37dc5da8a07
parent5335bfc6eb688344bfcd4b4133c002c0ae0d0719 (diff)
f2fs: Remove unnecessary unlikely()
WARN_ON() already contains an unlikely(), so it's not necessary to use unlikely. Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: Shuosheng Huang <huangshuosheng@allwinnertech.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/f2fs.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 90e1fe0ce4bb..4417f791dbc6 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