diff options
author | pjd <pjd@FreeBSD.org> | 2004-12-19 23:55:49 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-12-19 23:55:49 +0000 |
commit | d359cbb8ec718b91437ab65489dae12b0b127b50 (patch) | |
tree | 394c7bb90c3a060d04f7cfde58a2f62bfb35c35f /sys/geom/mirror | |
parent | 5d72d5354a365055a5d453adba536e89c77df1b3 (diff) | |
download | FreeBSD-src-d359cbb8ec718b91437ab65489dae12b0b127b50.zip FreeBSD-src-d359cbb8ec718b91437ab65489dae12b0b127b50.tar.gz |
Remove unused variables.
Diffstat (limited to 'sys/geom/mirror')
-rw-r--r-- | sys/geom/mirror/g_mirror.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c index 1099e5e..3a92172 100644 --- a/sys/geom/mirror/g_mirror.c +++ b/sys/geom/mirror/g_mirror.c @@ -1640,7 +1640,6 @@ static void g_mirror_sync_start(struct g_mirror_disk *disk) { struct g_mirror_softc *sc; - struct g_consumer *cp; int error; g_topology_assert(); @@ -1649,7 +1648,6 @@ g_mirror_sync_start(struct g_mirror_disk *disk) KASSERT(sc->sc_state == G_MIRROR_DEVICE_STATE_RUNNING, ("Device not in RUNNING state (%s, %u).", sc->sc_name, sc->sc_state)); - cp = disk->d_consumer; G_MIRROR_DEBUG(0, "Device %s: rebuilding provider %s.", sc->sc_name, g_mirror_get_diskname(disk)); @@ -1678,7 +1676,6 @@ g_mirror_sync_start(struct g_mirror_disk *disk) static void g_mirror_sync_stop(struct g_mirror_disk *disk, int type) { - struct g_consumer *cp; g_topology_assert(); KASSERT(disk->d_state == G_MIRROR_DISK_STATE_SYNCHRONIZING, @@ -1694,12 +1691,10 @@ g_mirror_sync_stop(struct g_mirror_disk *disk, int type) G_MIRROR_DEBUG(0, "Device %s: rebuilding provider %s stopped.", disk->d_softc->sc_name, g_mirror_get_diskname(disk)); } - cp = disk->d_sync.ds_consumer; - g_mirror_kill_consumer(disk->d_softc, cp); + g_mirror_kill_consumer(disk->d_softc, disk->d_sync.ds_consumer); free(disk->d_sync.ds_data, M_MIRROR); disk->d_sync.ds_consumer = NULL; disk->d_softc->sc_sync.ds_ndisks--; - cp = disk->d_consumer; disk->d_flags &= ~G_MIRROR_DISK_FLAG_DIRTY; } |