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/g_raid.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/g_raid.c')
-rw-r--r-- | sys/geom/raid/g_raid.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/geom/raid/g_raid.c b/sys/geom/raid/g_raid.c index eebb360..3a93034 100644 --- a/sys/geom/raid/g_raid.c +++ b/sys/geom/raid/g_raid.c @@ -1608,7 +1608,7 @@ g_raid_access(struct g_provider *pp, int acr, int acw, int ace) { struct g_raid_volume *vol; struct g_raid_softc *sc; - int dcr, dcw, dce, opens, error = 0; + int dcw, opens, error = 0; g_topology_assert(); sc = pp->geom->softc; @@ -1618,10 +1618,7 @@ g_raid_access(struct g_provider *pp, int acr, int acw, int ace) G_RAID_DEBUG1(2, sc, "Access request for %s: r%dw%de%d.", pp->name, acr, acw, ace); - - dcr = pp->acr + acr; dcw = pp->acw + acw; - dce = pp->ace + ace; g_topology_unlock(); sx_xlock(&sc->sc_lock); |