svn commit: r185358 - head/sys/kern

Ganbold Tsagaankhuu ganbold at FreeBSD.org
Wed Nov 26 20:40:38 PST 2008


Author: ganbold (doc committer)
Date: Thu Nov 27 04:40:37 2008
New Revision: 185358
URL: http://svn.freebsd.org/changeset/base/185358

Log:
  Remove unused variable.
  
  Found with:     Coverity Prevent(tm)
  CID: 3664
  
  Approved by: kib

Modified:
  head/sys/kern/kern_lockf.c

Modified: head/sys/kern/kern_lockf.c
==============================================================================
--- head/sys/kern/kern_lockf.c	Thu Nov 27 03:37:46 2008	(r185357)
+++ head/sys/kern/kern_lockf.c	Thu Nov 27 04:40:37 2008	(r185358)
@@ -1342,7 +1342,6 @@ static int
 lf_setlock(struct lockf *state, struct lockf_entry *lock, struct vnode *vp,
     void **cookiep)
 {
-	struct lockf_entry *block;
 	static char lockstr[] = "lockf";
 	int priority, error;
 
@@ -1362,7 +1361,7 @@ lf_setlock(struct lockf *state, struct l
 	/*
 	 * Scan lock list for this file looking for locks that would block us.
 	 */
-	while ((block = lf_getblock(state, lock))) {
+	while (lf_getblock(state, lock)) {
 		/*
 		 * Free the structure and return if nonblocking.
 		 */


More information about the svn-src-head mailing list