diff options
| author | Attilio Rao <attilio@FreeBSD.org> | 2008-02-08 21:45:47 +0000 |
|---|---|---|
| committer | Attilio Rao <attilio@FreeBSD.org> | 2008-02-08 21:45:47 +0000 |
| commit | 2433c4883eb2c0e38c25edc501612b569a01ab68 (patch) | |
| tree | d665c82ab8f9928d1e59b948e716949fff3645b5 /sys/kern/kern_lock.c | |
| parent | 5e9f6b73ee35b960ffb2d2900e88e3fa6114b5a3 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_lock.c')
| -rw-r--r-- | sys/kern/kern_lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 877b40167691..d64b354f4e8f 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; |
