[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1556540791-23110-1-git-send-email-zhengbin13@huawei.com>
Date: Mon, 29 Apr 2019 20:26:31 +0800
From: zhengbin <zhengbin13@...wei.com>
To: <peterz@...radead.org>, <mingo@...hat.com>, <will.deacon@....com>,
<linux-kernel@...r.kernel.org>
CC: <houtao1@...wei.com>
Subject: [PATCH] lockdep: remove unnecessary unlikely()
DEBUG_LOCKS_WARN_ON() already contains an unlikely(), there is no need
for another one.
Signed-off-by: zhengbin <zhengbin13@...wei.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 e221be7..1522034 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -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
Powered by blists - more mailing lists