diff options
author | NeilBrown <neilb@suse.de> | 2009-09-23 18:06:41 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-09-23 18:06:41 +1000 |
commit | a9f326ebf22a0de776815240fb76dabe139397ea (patch) | |
tree | 4402ba08931cd0663aca077be4d26e66c91869bd /drivers/md/raid0.c | |
parent | 7fa07729e439a6184bd824746d06a49cca553f15 (diff) | |
download | linux-a9f326ebf22a0de776815240fb76dabe139397ea.tar.gz linux-a9f326ebf22a0de776815240fb76dabe139397ea.tar.bz2 linux-a9f326ebf22a0de776815240fb76dabe139397ea.zip |
md: remove sparse waring "symbol xxx shadows an earlier one"
Rename some variable and remove some duplicate definitions
to avoid there warnings. None of them are actual errors.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid0.c')
-rw-r--r-- | drivers/md/raid0.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c index f845ed98fec9..68a4d129206e 100644 --- a/drivers/md/raid0.c +++ b/drivers/md/raid0.c @@ -86,7 +86,7 @@ static void dump_zones(mddev_t *mddev) static int create_strip_zones(mddev_t *mddev) { - int i, c, j, err; + int i, c, err; sector_t curr_zone_end, sectors; mdk_rdev_t *smallest, *rdev1, *rdev2, *rdev, **dev; struct strip_zone *zone; @@ -198,6 +198,8 @@ static int create_strip_zones(mddev_t *mddev) /* now do the other zones */ for (i = 1; i < conf->nr_strip_zones; i++) { + int j; + zone = conf->strip_zone + i; dev = conf->devlist + i * mddev->raid_disks; @@ -207,7 +209,6 @@ static int create_strip_zones(mddev_t *mddev) c = 0; for (j=0; j<cnt; j++) { - char b[BDEVNAME_SIZE]; rdev = conf->devlist[j]; printk(KERN_INFO "raid0: checking %s ...", bdevname(rdev->bdev, b)); |