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:
Konstantin Belousov 2009-05-24 12:28:38 +00:00
parent 3b086f3159
commit 8aec91b5e8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192681

View File

@ -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.
*/