Skip to content

Commit dd471ef

Browse files
kobe-cp-wuingomolnar
authored andcommitted
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>
1 parent 9ffbe8a commit dd471ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/locking/lockdep.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4160,7 +4160,7 @@ __lock_release(struct lockdep_map *lock, unsigned long ip)
41604160
* So we're all set to release this lock.. wait what lock? We don't
41614161
* own any locks, you've been drinking again?
41624162
*/
4163-
if (DEBUG_LOCKS_WARN_ON(depth <= 0)) {
4163+
if (depth <= 0) {
41644164
print_unlock_imbalance_bug(curr, lock, ip);
41654165
return 0;
41664166
}

0 commit comments

Comments
 (0)