diff options
author | phk <phk@FreeBSD.org> | 2003-05-31 19:28:53 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-31 19:28:53 +0000 |
commit | ef00c86fced5120507094f7064f2ab6c0c7bdab9 (patch) | |
tree | 96584195f010dbf7fe7fbe4992d107d1f1011d7b /sys/geom/geom_apple.c | |
parent | 926fff03bf522ba4aa811a8284d2e141ecdad6eb (diff) | |
download | FreeBSD-src-ef00c86fced5120507094f7064f2ab6c0c7bdab9.zip FreeBSD-src-ef00c86fced5120507094f7064f2ab6c0c7bdab9.tar.gz |
Remove unused variable.
Found by: FlexeLint
Diffstat (limited to 'sys/geom/geom_apple.c')
-rw-r--r-- | sys/geom/geom_apple.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/geom/geom_apple.c b/sys/geom/geom_apple.c index b8cd8d5..8146d67 100644 --- a/sys/geom/geom_apple.c +++ b/sys/geom/geom_apple.c @@ -92,13 +92,11 @@ g_apple_start(struct bio *bp) { struct g_provider *pp; struct g_geom *gp; - struct g_apm_softc *mp; struct g_slicer *gsp; pp = bp->bio_to; gp = pp->geom; gsp = gp->softc; - mp = gsp->softc; if (bp->bio_cmd == BIO_GETATTR) { if (g_handleattr_off_t(bp, "APM::offset", gsp->slices[pp->index].offset)) @@ -145,9 +143,8 @@ g_apple_taste(struct g_class *mp, struct g_provider *pp, int insist) { struct g_geom *gp; struct g_consumer *cp; - int error, i, npart; + int error, i; struct g_apple_softc *ms; - struct g_slicer *gsp; struct apm_partition *apm; u_int sectorsize; u_char *buf; @@ -157,10 +154,8 @@ g_apple_taste(struct g_class *mp, struct g_provider *pp, int insist) gp = g_slice_new(mp, NAPMPART, pp, &cp, &ms, sizeof *ms, g_apple_start); if (gp == NULL) return (NULL); - gsp = gp->softc; g_topology_unlock(); gp->dumpconf = g_apple_dumpconf; - npart = 0; do { if (gp->rank != 2 && insist == 0) break; @@ -218,7 +213,6 @@ g_apple_taste(struct g_class *mp, struct g_provider *pp, int insist) &ms->apmpart[i]); } - npart = 0; for (i = 0; i < NAPMPART; i++) { apm = &ms->apmpart[i]; @@ -237,7 +231,6 @@ g_apple_taste(struct g_class *mp, struct g_provider *pp, int insist) gp->name); /* g_apple_print(i, dp + i); */ } - npart++; g_topology_lock(); g_slice_config(gp, i, G_SLICE_CONFIG_SET, (off_t)apm->am_start << 9ULL, |