Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern "ovcase" is set but not used in lf_getblock(); remo...
details: https://anonhg.NetBSD.org/src/rev/9e62e157bb3e
branches: trunk
changeset: 538525:9e62e157bb3e
user: simonb <simonb%NetBSD.org@localhost>
date: Tue Oct 22 03:32:17 2002 +0000
description:
"ovcase" is set but not used in lf_getblock(); remove it.
diffstat:
sys/kern/vfs_lockf.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r a10d48009f0e -r 9e62e157bb3e sys/kern/vfs_lockf.c
--- a/sys/kern/vfs_lockf.c Tue Oct 22 03:29:51 2002 +0000
+++ b/sys/kern/vfs_lockf.c Tue Oct 22 03:32:17 2002 +0000
@@ -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
@@ -39,7 +39,7 @@
*/
#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/systm.h>
@@ -537,11 +537,9 @@
struct lockf *lock;
{
struct lockf **prev, *overlap, *lf = *(lock->lf_head);
- int ovcase;
prev = lock->lf_head;
- while ((ovcase = lf_findoverlap(lf, lock, OTHERS,
- &prev, &overlap)) != 0) {
+ while (lf_findoverlap(lf, lock, OTHERS, &prev, &overlap) != 0) {
/*
* We've found an overlap, see if it blocks us
*/
Home |
Main Index |
Thread Index |
Old Index