diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 6284be1746d275ce23666cb3057f417bd75e7f2a..f3768f326981d0ecab1c9a39df60950f2723373c 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -3567,9 +3567,6 @@ __lock_set_class(struct lockdep_map *lock, const char *name, unsigned int depth; int i; - if (unlikely(!debug_locks)) - return 0; - depth = curr->lockdep_depth; /* * This function is about (re)setting the class of a held lock,