diff options
author | attilio <attilio@FreeBSD.org> | 2008-02-06 13:26:01 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2008-02-06 13:26:01 +0000 |
commit | a715e455c68147bde8ec892e921133d179897891 (patch) | |
tree | 77b0f960c2444f8f0c3a8e9e72f814fc6e8c58ef /sys/kern/kern_lock.c | |
parent | d129ae8c34e8048ee4b26dd9af0f14069593357a (diff) | |
download | FreeBSD-src-a715e455c68147bde8ec892e921133d179897891.zip FreeBSD-src-a715e455c68147bde8ec892e921133d179897891.tar.gz |
td cannot be NULL in that place, so just axe out the check.
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 7e9e096..877b401 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) |