Replace the while statement with the if for clarity. The loop body
cannot be executed more then once. Reviewed by: dfr Tested by: pho MFC after: 1 month
This commit is contained in:
parent
3b086f3159
commit
8aec91b5e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192681
@ -1361,7 +1361,7 @@ lf_setlock(struct lockf *state, struct lockf_entry *lock, struct vnode *vp,
|
||||
/*
|
||||
* Scan lock list for this file looking for locks that would block us.
|
||||
*/
|
||||
while (lf_getblock(state, lock)) {
|
||||
if (lf_getblock(state, lock)) {
|
||||
/*
|
||||
* Free the structure and return if nonblocking.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user