aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.c
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2012-07-30 20:03:52 -0400
committerNeilBrown <neilb@suse.de>2012-07-30 20:03:52 -0400
commit3bbae04b126fbd4c191b4167ea46ba9c4da46425 (patch)
treefd6eb3e7a97e7fe66b9e7225b98bc0bc17e8f7b9 /drivers/md/raid10.c
parentb17459c05000fdbe8d10946570a26510f86ec0f6 (diff)
MD RAID10: Fix compiler warning.
MD RAID10: Fix compiler warning. Initialize variable to prevent compiler warning. Signed-off-by: Jonathan Brassow <jbrassow@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r--drivers/md/raid10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index 8da6282254c3..b3d79db35e9b 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -717,7 +717,7 @@ static struct md_rdev *read_balance(struct r10conf *conf,
717 int sectors = r10_bio->sectors; 717 int sectors = r10_bio->sectors;
718 int best_good_sectors; 718 int best_good_sectors;
719 sector_t new_distance, best_dist; 719 sector_t new_distance, best_dist;
720 struct md_rdev *rdev, *best_rdev; 720 struct md_rdev *best_rdev, *rdev = NULL;
721 int do_balance; 721 int do_balance;
722 int best_slot; 722 int best_slot;
723 struct geom *geo = &conf->geo; 723 struct geom *geo = &conf->geo;