svn commit: r194692 - in stable/7/sys: . contrib/pf kern
Konstantin Belousov
kib at FreeBSD.org
Tue Jun 23 10:41:39 UTC 2009
Author: kib
Date: Tue Jun 23 10:41:38 2009
New Revision: 194692
URL: http://svn.freebsd.org/changeset/base/194692
Log:
MFC r192681:
Replace the while statement with the if for clarity. The loop body
cannot be executed more then once.
Modified:
stable/7/sys/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
stable/7/sys/kern/kern_lockf.c
Modified: stable/7/sys/kern/kern_lockf.c
==============================================================================
--- stable/7/sys/kern/kern_lockf.c Tue Jun 23 10:37:28 2009 (r194691)
+++ stable/7/sys/kern/kern_lockf.c Tue Jun 23 10:41:38 2009 (r194692)
@@ -1361,7 +1361,7 @@ lf_setlock(struct lockf *state, struct l
/*
* 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.
*/
More information about the svn-src-stable-7
mailing list