Date: Sun, 24 May 2009 12:28:38 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r192681 - head/sys/kern Message-ID: <200905241228.n4OCSckJ089632@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sun May 24 12:28:38 2009 New Revision: 192681 URL: http://svn.freebsd.org/changeset/base/192681 Log: 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 Modified: head/sys/kern/kern_lockf.c Modified: head/sys/kern/kern_lockf.c ============================================================================== --- head/sys/kern/kern_lockf.c Sun May 24 11:52:08 2009 (r192680) +++ head/sys/kern/kern_lockf.c Sun May 24 12:28:38 2009 (r192681) @@ -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. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905241228.n4OCSckJ089632>