diff options
author | obrien <obrien@FreeBSD.org> | 2004-08-16 10:33:35 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2004-08-16 10:33:35 +0000 |
commit | 652905e47adc90be776a37b2cb1d15a7afcea010 (patch) | |
tree | d3c07030066d906b05a78cf85346aa57ea647ce4 /sys | |
parent | 2eca8469bb08c69d8183b41e4df984e7fc0f615f (diff) | |
download | FreeBSD-src-652905e47adc90be776a37b2cb1d15a7afcea010.zip FreeBSD-src-652905e47adc90be776a37b2cb1d15a7afcea010.tar.gz |
Minor style.9 cleanup.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/geom/raid3/g_raid3.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/geom/raid3/g_raid3.c b/sys/geom/raid3/g_raid3.c index af9d800..5cd0516 100644 --- a/sys/geom/raid3/g_raid3.c +++ b/sys/geom/raid3/g_raid3.c @@ -319,9 +319,9 @@ u_int g_raid3_ndisks(struct g_raid3_softc *sc, int state) { struct g_raid3_disk *disk; - u_int n, ndisks = 0; + u_int n, ndisks; - for (n = 0; n < sc->sc_ndisks; n++) { + for (n = ndisks = 0; n < sc->sc_ndisks; n++) { disk = &sc->sc_disks[n]; if (disk->d_state == G_RAID3_DISK_STATE_NODISK) continue; @@ -1303,8 +1303,9 @@ g_raid3_register_request(struct bio *pbp) struct g_consumer *cp; struct bio *cbp; off_t offset, length; - u_int n, ndisks = 0; + u_int n, ndisks; + ndisks = 0; sc = pbp->bio_to->geom->softc; if ((pbp->bio_cflags & G_RAID3_BIO_CFLAG_REGSYNC) != 0 && sc->sc_syncdisk == NULL) { |