From 5047a8fd889ef9c33cb253781a265a8d9dbcf53b Mon Sep 17 00:00:00 2001 From: Attilio Rao Date: Sun, 25 May 2008 16:11:27 +0000 Subject: [PATCH] The "if" semantic is not needed, just fix this. --- sys/kern/kern_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 66535350887..da6af57f998 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;