Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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@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>

authored by

Kobe Wu and committed by
Ingo Molnar
dd471efe 9ffbe8ac

+1 -1
+1 -1
kernel/locking/lockdep.c
··· 4160 4160 * So we're all set to release this lock.. wait what lock? We don't 4161 4161 * own any locks, you've been drinking again? 4162 4162 */ 4163 - if (DEBUG_LOCKS_WARN_ON(depth <= 0)) { 4163 + if (depth <= 0) { 4164 4164 print_unlock_imbalance_bug(curr, lock, ip); 4165 4165 return 0; 4166 4166 }