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. */ _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"