locking/lockdep: Remove unnecessary DEBUG_LOCKS_WARN_ON()
authorKobe Wu <kobe-cp.wu@mediatek.com>
Thu, 30 May 2019 11:59:35 +0000 (19:59 +0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 17 Jun 2019 10:09:37 +0000 (12:09 +0200)
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@mediatek.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: <linux-mediatek@lists.infradead.org>
Cc: <wsd_upstream@mediatek.com>
Cc: Eason Lin <eason-yh.lin@mediatek.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Link: https://lkml.kernel.org/r/1559217575-30298-1-git-send-email-kobe-cp.wu@mediatek.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/lockdep.c

index 48a840adb281c4b0ec9288c6877aed671486e64b..5e368f4853301d30cd15d05bed7a63b284060d29 100644 (file)
@@ -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;
        }