The "if" semantic is not needed, just fix this.

This commit is contained in:
attilio 2008-05-25 16:11:27 +00:00
parent 4d240aa98e
commit 4755d96541

View File

@ -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;