Messages in this thread Patch in this message | | | From | Shuosheng Huang <> | Subject | [PATCH] f2fs: Remove unnecessary unlikely() | Date | Tue, 1 Dec 2020 15:03:57 +0800 |
| |
From: Yangtao Li <tiny.windzz@gmail.com>
WARN_ON() already contains an unlikely(), so it's not necessary to use unlikely.
Signed-off-by: Yangtao Li <tiny.windzz@gmail.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
| |