summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r--sys/kern/kern_lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index 877b401..d64b354 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -606,7 +606,7 @@ lockstatus(lkp, td)
int lock_type = 0;
int interlocked;
- KASSERT(td == NULL || td == curthread,
+ KASSERT(td == curthread,
("%s: thread passed argument (%p) is not valid", __func__, td));
if (!kdb_active) {
@@ -615,7 +615,7 @@ lockstatus(lkp, td)
} else
interlocked = 0;
if (lkp->lk_exclusivecount != 0) {
- if (td == NULL || lkp->lk_lockholder == td)
+ if (lkp->lk_lockholder == td)
lock_type = LK_EXCLUSIVE;
else
lock_type = LK_EXCLOTHER;
OpenPOWER on IntegriCloud