VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Yangtao Li <tiny.windzz@gmail.com> 2020-12-01 15:17:39 +0800 committer: Jaegeuk Kim <jaegeuk@kernel.org> 2020-12-02 22:00:23 -0800 commit: db48965264110dd74d1436fc21dac328d04385d2 parent: 5335bfc6eb688344bfcd4b4133c002c0ae0d0719
Commit Summary:
f2fs: Remove unnecessary unlikely()
Diffstat:
1 file changed, 1 insertion, 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