"ovcase" is set but not used in lf_getblock(); remove it.

This commit is contained in:
simonb 2002-10-22 03:32:17 +00:00
parent a61a7031e1
commit 9c8f3f4a77
1 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_lockf.c,v 1.19 2002/09/04 01:32:47 matt Exp $ */ /* $NetBSD: vfs_lockf.c,v 1.20 2002/10/22 03:32:17 simonb Exp $ */
/* /*
* Copyright (c) 1982, 1986, 1989, 1993 * Copyright (c) 1982, 1986, 1989, 1993
@ -39,7 +39,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vfs_lockf.c,v 1.19 2002/09/04 01:32:47 matt Exp $"); __KERNEL_RCSID(0, "$NetBSD: vfs_lockf.c,v 1.20 2002/10/22 03:32:17 simonb Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -537,11 +537,9 @@ lf_getblock(lock)
struct lockf *lock; struct lockf *lock;
{ {
struct lockf **prev, *overlap, *lf = *(lock->lf_head); struct lockf **prev, *overlap, *lf = *(lock->lf_head);
int ovcase;
prev = lock->lf_head; prev = lock->lf_head;
while ((ovcase = lf_findoverlap(lf, lock, OTHERS, while (lf_findoverlap(lf, lock, OTHERS, &prev, &overlap) != 0) {
&prev, &overlap)) != 0) {
/* /*
* We've found an overlap, see if it blocks us * We've found an overlap, see if it blocks us
*/ */