summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_lock.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2008-05-25 16:11:27 +0000
committerattilio <attilio@FreeBSD.org>2008-05-25 16:11:27 +0000
commit4755d9654185966ed6345a8eedb3cd6863a99000 (patch)
tree0fe141f42f03e8689a456e22441e4960f900dc92 /sys/kern/kern_lock.c
parent4d240aa98e28b74ea9808f1ed3cd852399f4c1ba (diff)
downloadFreeBSD-src-4755d9654185966ed6345a8eedb3cd6863a99000.zip
FreeBSD-src-4755d9654185966ed6345a8eedb3cd6863a99000.tar.gz
The "if" semantic is not needed, just fix this.
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r--sys/kern/kern_lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index 6653535..da6af57 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;
OpenPOWER on IntegriCloud