summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_dev.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-31 19:40:43 +0000
committerphk <phk@FreeBSD.org>2003-05-31 19:40:43 +0000
commit70af1dfe88ac4e99faf3ed514318d4bc10e1d849 (patch)
tree1f77b9484230c5d84d709dee6499da16fe7a0834 /sys/geom/geom_dev.c
parent30aa5fffc74634d452288805ebc0be032be9dec3 (diff)
downloadFreeBSD-src-70af1dfe88ac4e99faf3ed514318d4bc10e1d849.zip
FreeBSD-src-70af1dfe88ac4e99faf3ed514318d4bc10e1d849.tar.gz
Remove unused variables.
Found by: FlexeLint
Diffstat (limited to 'sys/geom/geom_dev.c')
-rw-r--r--sys/geom/geom_dev.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c
index ac812fe..ef9ecf1 100644
--- a/sys/geom/geom_dev.c
+++ b/sys/geom/geom_dev.c
@@ -264,9 +264,8 @@ g_dev_close(dev_t dev, int flags, int fmt, struct thread *td)
static int
g_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct thread *td)
{
- struct g_geom *gp, *gp2;
+ struct g_geom *gp;
struct g_consumer *cp;
- struct g_provider *pp2;
struct g_kerneldump kd;
int i, error;
u_int u;
@@ -274,8 +273,6 @@ g_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct thread *td)
gp = dev->si_drv1;
cp = dev->si_drv2;
- pp2 = cp->provider;
- gp2 = pp2->geom;
gio = NULL;
error = 0;
@@ -394,7 +391,6 @@ g_dev_done(struct bio *bp2)
static void
g_dev_strategy(struct bio *bp)
{
- struct g_geom *gp;
struct g_consumer *cp;
struct bio *bp2;
dev_t dev;
@@ -404,7 +400,6 @@ g_dev_strategy(struct bio *bp)
bp->bio_cmd == BIO_DELETE,
("Wrong bio_cmd bio=%p cmd=%d", bp, bp->bio_cmd));
dev = bp->bio_dev;
- gp = dev->si_drv1;
cp = dev->si_drv2;
KASSERT(cp->acr || cp->acw,
("Consumer with zero access count in g_dev_strategy"));
OpenPOWER on IntegriCloud