diff options
| author | Attilio Rao <attilio@FreeBSD.org> | 2008-02-06 13:26:01 +0000 |
|---|---|---|
| committer | Attilio Rao <attilio@FreeBSD.org> | 2008-02-06 13:26:01 +0000 |
| commit | 9032b51ef3565311571c6d7502d3997890a373b5 (patch) | |
| tree | 77b0f960c2444f8f0c3a8e9e72f814fc6e8c58ef /sys/kern/kern_lock.c | |
| parent | 79257dd70a02290126060aa7876802653cb5badc (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_lock.c')
| -rw-r--r-- | sys/kern/kern_lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 7e9e0962240c..877b40167691 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -257,7 +257,7 @@ _lockmgr(struct lock *lkp, u_int flags, struct mtx *interlkp, char *file, */ if (lkp->lk_lockholder != td) { lockflags = LK_HAVE_EXCL; - if (td != NULL && !(td->td_pflags & TDP_DEADLKTREAT)) + if (!(td->td_pflags & TDP_DEADLKTREAT)) lockflags |= LK_WANT_EXCL | LK_WANT_UPGRADE; error = acquire(&lkp, extflags, lockflags, &contested, &waitstart); if (error) |
