summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2012-07-31 10:03:52 +1000
committerNeilBrown <neilb@suse.de>2012-07-31 10:03:52 +1000
commit3bbae04b126fbd4c191b4167ea46ba9c4da46425 (patch)
treefd6eb3e7a97e7fe66b9e7225b98bc0bc17e8f7b9 /drivers
parentb17459c05000fdbe8d10946570a26510f86ec0f6 (diff)
downloadblackbird-op-linux-3bbae04b126fbd4c191b4167ea46ba9c4da46425.tar.gz
blackbird-op-linux-3bbae04b126fbd4c191b4167ea46ba9c4da46425.zip
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')
-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,
int sectors = r10_bio->sectors;
int best_good_sectors;
sector_t new_distance, best_dist;
- struct md_rdev *rdev, *best_rdev;
+ struct md_rdev *best_rdev, *rdev = NULL;
int do_balance;
int best_slot;
struct geom *geo = &conf->geo;
OpenPOWER on IntegriCloud