]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
f2fs: Remove unnecessary unlikely()
authorYangtao Li <tiny.windzz@gmail.com>
Tue, 1 Dec 2020 07:17:39 +0000 (15:17 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 3 Dec 2020 06:00:23 +0000 (22:00 -0800)
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>
fs/f2fs/f2fs.h

index 90e1fe0ce4bbb47ed25ae01ab537de915465a627..4417f791dbc67d2ea45c1ab3b019dbea532924ad 100644 (file)
 #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