diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 5e5fe0b03b3..550538a9bd6 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -466,8 +466,6 @@ debuglockmgr(lkp, flags, interlkp, td, name, file, line) lkp->lk_lockholder = thr; lkp->lk_exclusivecount = 1; COUNT(td, 1); - if (td != NULL) - td->td_locks++; #if defined(DEBUG_LOCKS) lkp->lk_filename = file; lkp->lk_lineno = line;