summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorsimonb <simonb@NetBSD.org>2003-10-30 01:58:17 +0000
committersimonb <simonb@NetBSD.org>2003-10-30 01:58:17 +0000
commitb6abb6ab1d1118541674dbc178183474e2b53885 (patch)
tree23ec9d904ee7b6b6ac5ac4c87474f81303a2a7ab /sys/dev/raidframe
parenta2facef339b5973ff8d4b9807749d3105dfc5eaf (diff)
Remove some assigned-to but otherwise unused variables.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_netbsdkintf.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c
index cf16c92f027..33f5b1d4916 100644
--- a/sys/dev/raidframe/rf_netbsdkintf.c
+++ b/sys/dev/raidframe/rf_netbsdkintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.164 2003/10/25 18:34:14 christos Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.165 2003/10/30 01:58:17 simonb Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -146,7 +146,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.164 2003/10/25 18:34:14 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.165 2003/10/30 01:58:17 simonb Exp $");
#include <sys/param.h>
#include <sys/errno.h>
@@ -702,7 +702,6 @@ raidstrategy(bp)
unsigned int raidID = raidunit(bp->b_dev);
RF_Raid_t *raidPtr;
struct raid_softc *rs = &raid_softc[raidID];
- struct disklabel *lp;
int wlabel;
if ((rs->sc_flags & RAIDF_INITED) ==0) {
@@ -732,7 +731,6 @@ raidstrategy(bp)
biodone(bp);
return;
}
- lp = rs->sc_dkdev.dk_label;
/*
* Do bounds checking and adjust transfer. If there's an
@@ -767,7 +765,6 @@ raidread(dev, uio, flags)
{
int unit = raidunit(dev);
struct raid_softc *rs;
- int part;
if (unit >= numraid)
return (ENXIO);
@@ -775,7 +772,6 @@ raidread(dev, uio, flags)
if ((rs->sc_flags & RAIDF_INITED) == 0)
return (ENXIO);
- part = DISKPART(dev);
return (physio(raidstrategy, NULL, dev, B_READ, minphys, uio));