The "if" semantic is not needed, just fix this.
This commit is contained in:
parent
4d240aa98e
commit
4755d96541
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user