aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYangtao Li2020-12-01 01:17:39 -0600
committerJaegeuk Kim2020-12-21 15:33:16 -0600
commit516758ca20d4f07fb7a44d1d94c48c9f91056961 (patch)
treeda2a3bef2f4a0bb28bcf14b88c273ce7b77a5205
parentd86ac27d3715a2d714732d5ac798752b89049502 (diff)
downloadkernel-516758ca20d4f07fb7a44d1d94c48c9f91056961.tar.gz
kernel-516758ca20d4f07fb7a44d1d94c48c9f91056961.tar.xz
kernel-516758ca20d4f07fb7a44d1d94c48c9f91056961.zip
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 @@
33#else 33#else
34#define f2fs_bug_on(sbi, condition) \ 34#define f2fs_bug_on(sbi, condition) \
35 do { \ 35 do { \
36 if (unlikely(condition)) { \ 36 if (WARN_ON(condition)) \
37 WARN_ON(1); \
38 set_sbi_flag(sbi, SBI_NEED_FSCK); \ 37 set_sbi_flag(sbi, SBI_NEED_FSCK); \
39 } \
40 } while (0) 38 } while (0)
41#endif 39#endif
42 40