lockdep: remove unnecessary unlikely()
PATCH 1/1 lockdep: remove unnecessary unlikely()
DEBUG_LOCKS_WARN_ON() already contains an unlikely(), there is no need for another one.
Signed-off-by zhengbin <[email protected]>
--- kernel/locking/lockdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/locking/lockdep.c +1 -1
@@ -3157,7 +3157,7 @@ void lockdep_hardirqs_on(unsigned long ip)/* * See the fine text that goes along with this variable definition. */ -if (DEBUG_LOCKS_WARN_ON (unlikely (early_boot_irqs_disabled))) +if (DEBUG_LOCKS_WARN_ON (early_boot_irqs_disabled))return ;/*
--
2.7.4
tip-bot for zhengbin
merge bot[tip:locking/core] locking/lockdep: Remove unnecessary unlikely()
locking/lockdep: Remove unnecessary unlikely()
Commit-ID: d671002be6bdd7f77a771e23bf3e95d1f16775e6 Gitweb: https://git.kernel.org/tip/d671002be6bdd7f77a771e23bf3e95d1f16775e6 Author: zhengbin <[email protected]> AuthorDate: Mon, 29 Apr 2019 20:26:31 +0800 Committer: Ingo Molnar <[email protected]> CommitDate: Mon, 29 Apr 2019 16:11:01 +0200
locking/lockdep: Remove unnecessary unlikely()
DEBUG_LOCKS_WARN_ON() already contains an unlikely(), there is no need for another one.
Signed-off-by zhengbin <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Paul E. McKenney <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Will Deacon <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- kernel/locking/lockdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/locking/lockdep.c +1 -1
@@ -3256,7 +3256,7 @@ void lockdep_hardirqs_on(unsigned long ip)/* * See the fine text that goes along with this variable definition. */ -if (DEBUG_LOCKS_WARN_ON (unlikely (early_boot_irqs_disabled))) +if (DEBUG_LOCKS_WARN_ON (early_boot_irqs_disabled))return ;/*