diff options
author | Attilio Rao <attilio@FreeBSD.org> | 2008-05-25 16:11:27 +0000 |
---|---|---|
committer | Attilio Rao <attilio@FreeBSD.org> | 2008-05-25 16:11:27 +0000 |
commit | 5047a8fd889ef9c33cb253781a265a8d9dbcf53b (patch) | |
tree | 0fe141f42f03e8689a456e22441e4960f900dc92 /sys/kern/kern_lock.c | |
parent | 258f4727f17d184968106445cf521025a6a2f5fb (diff) | |
download | src-5047a8fd889ef9c33cb253781a265a8d9dbcf53b.tar.gz src-5047a8fd889ef9c33cb253781a265a8d9dbcf53b.zip |
The "if" semantic is not needed, just fix this.
Notes
Notes:
svn path=/head/; revision=179306
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 66535350887b..da6af57f9985 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -163,7 +163,7 @@ sleeplk(struct lock *lk, u_int flags, struct lock_object *ilk, int catch, error; class = (flags & LK_INTERLOCK) ? LOCK_CLASS(ilk) : NULL; - catch = (pri) ? (pri & PCATCH) : 0; + catch = pri & PCATCH; pri &= PRIMASK; error = 0; |