Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Nov 2008 04:40:37 +0000 (UTC)
From:      Ganbold Tsagaankhuu <ganbold@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185358 - head/sys/kern
Message-ID:  <200811270440.mAR4ebIw076055@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.
 		 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811270440.mAR4ebIw076055>