Messages in this thread Patch in this message |  | | From | Geliang Tang <> | | Subject | [PATCH] lockdep: drop unlikely behind DEBUG_LOCKS_WARN_ON() | | Date | Sun, 4 Oct 2015 15:03:31 +0800 |
| |
DEBUG_LOCKS_WARN_ON() already contain an unlikely compiler flag. Drop it.
Signed-off-by: Geliang Tang <geliangtang@163.com> --- kernel/locking/lockdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index deae390..9d8cbb1 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -2598,7 +2598,7 @@ __visible void trace_hardirqs_on_caller(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.5.0
|  |