diff options
-rw-r--r-- | drivers/md/raid10.c | 2 |
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; |