[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-dd471efe345bf6f9e1206f6c629ca3e80eb43523@git.kernel.org>
Date: Mon, 17 Jun 2019 07:18:00 -0700
From: tip-bot for Kobe Wu <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, will.deacon@....com, hpa@...or.com,
tglx@...utronix.de, kobe-cp.wu@...iatek.com,
eason-yh.lin@...iatek.com, mingo@...nel.org,
torvalds@...ux-foundation.org, peterz@...radead.org,
linux-mediatek@...ts.infradead.org, wsd_upstream@...iatek.com
Subject: [tip:locking/core] locking/lockdep: Remove unnecessary
DEBUG_LOCKS_WARN_ON()
Commit-ID: dd471efe345bf6f9e1206f6c629ca3e80eb43523
Gitweb: https://git.kernel.org/tip/dd471efe345bf6f9e1206f6c629ca3e80eb43523
Author: Kobe Wu <kobe-cp.wu@...iatek.com>
AuthorDate: Thu, 30 May 2019 19:59:35 +0800
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Mon, 17 Jun 2019 12:09:37 +0200
locking/lockdep: Remove unnecessary DEBUG_LOCKS_WARN_ON()
DEBUG_LOCKS_WARN_ON() will turn off debug_locks and
makes print_unlock_imbalance_bug() return directly.
Remove a redundant whitespace.
Signed-off-by: Kobe Wu <kobe-cp.wu@...iatek.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Cc: <linux-mediatek@...ts.infradead.org>
Cc: <wsd_upstream@...iatek.com>
Cc: Eason Lin <eason-yh.lin@...iatek.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Will Deacon <will.deacon@....com>
Link: https://lkml.kernel.org/r/1559217575-30298-1-git-send-email-kobe-cp.wu@mediatek.com
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
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 48a840adb281..5e368f485330 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -4160,7 +4160,7 @@ __lock_release(struct lockdep_map *lock, unsigned long ip)
* So we're all set to release this lock.. wait what lock? We don't
* own any locks, you've been drinking again?
*/
- if (DEBUG_LOCKS_WARN_ON(depth <= 0)) {
+ if (depth <= 0) {
print_unlock_imbalance_bug(curr, lock, ip);
return 0;
}
Powered by blists - more mailing lists