summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorganbold <ganbold@FreeBSD.org>2008-11-27 04:40:37 +0000
committerganbold <ganbold@FreeBSD.org>2008-11-27 04:40:37 +0000
commit93f46a969a86e524c4e6455c9545c62512c1372b (patch)
tree5302095cfbc3d05106793e7c1b9c861c7cb54a4c
parent674fd83b36fc01538206fd382726a5c5eda6353b (diff)
downloadFreeBSD-src-93f46a969a86e524c4e6455c9545c62512c1372b.zip
FreeBSD-src-93f46a969a86e524c4e6455c9545c62512c1372b.tar.gz
Remove unused variable.
Found with: Coverity Prevent(tm) CID: 3664 Approved by: kib
-rw-r--r--sys/kern/kern_lockf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_lockf.c b/sys/kern/kern_lockf.c
index 2e1510d..b8cece6 100644
--- a/sys/kern/kern_lockf.c
+++ b/sys/kern/kern_lockf.c
@@ -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 lockf_entry *lock, struct vnode *vp,
/*
* 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.
*/
OpenPOWER on IntegriCloud