From: Jonathan Brassow Date: Thu, 19 Jul 2012 10:49:57 +0000 (+1000) Subject: MD RAID10: Fix compiler warning. X-Git-Tag: next-20120724~52^2~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c66b9caa9ee14ace3148d27bd0337c50da779cc7;p=karo-tx-linux.git MD RAID10: Fix compiler warning. MD RAID10: Fix compiler warning. Initialize variable to prevent compiler warning. Signed-off-by: Jonathan Brassow Signed-off-by: NeilBrown --- diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 5d33603a497d..519e2554995c 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;