diff options
author | mav <mav@FreeBSD.org> | 2011-03-31 16:19:53 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2011-03-31 16:19:53 +0000 |
commit | f19e4d3eda530abfc8bd12478bf6c2d358bb8e63 (patch) | |
tree | 6c65ed42b7845bc68adec4ff6e29fc4057460029 /sys/geom/raid/tr_raid1.c | |
parent | 8fca35a71a67ff324340e8a89c496eaef25f985a (diff) | |
download | FreeBSD-src-f19e4d3eda530abfc8bd12478bf6c2d358bb8e63.zip FreeBSD-src-f19e4d3eda530abfc8bd12478bf6c2d358bb8e63.tar.gz |
Bunch of small bugfixes and cleanups.
Found with: Clang Static Analyzer
Diffstat (limited to 'sys/geom/raid/tr_raid1.c')
-rw-r--r-- | sys/geom/raid/tr_raid1.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/geom/raid/tr_raid1.c b/sys/geom/raid/tr_raid1.c index afa7630..8e5eea2 100644 --- a/sys/geom/raid/tr_raid1.c +++ b/sys/geom/raid/tr_raid1.c @@ -549,7 +549,6 @@ g_raid_tr_iostart_raid1_read(struct g_raid_tr_object *tr, struct bio *bp) static void g_raid_tr_iostart_raid1_write(struct g_raid_tr_object *tr, struct bio *bp) { - struct g_raid_softc *sc; struct g_raid_volume *vol; struct g_raid_subdisk *sd; struct bio_queue_head queue; @@ -557,7 +556,6 @@ g_raid_tr_iostart_raid1_write(struct g_raid_tr_object *tr, struct bio *bp) int i; vol = tr->tro_volume; - sc = vol->v_softc; /* * Allocate all bios before sending any request, so we can return |