aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-12-13 20:49:47 -0500
committerNeilBrown <neilb@suse.de>2009-12-13 20:49:47 -0500
commit8553fe7ec731e4f997245e14319572cb15118018 (patch)
tree14cf104937c6260f00420e32e237eb0714db9389 /drivers/md/raid5.c
parentaa5cbd103887011b4830355f88fb055f9ad2d556 (diff)
md/raid5: remove some sparse warnings.
qd_idx is previously declared and given exactly the same value! Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index d29215d966da..34cb065f6d66 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -3358,7 +3358,6 @@ static void handle_stripe6(struct stripe_head *sh)
3358 * completed 3358 * completed
3359 */ 3359 */
3360 if (sh->reconstruct_state == reconstruct_state_drain_result) { 3360 if (sh->reconstruct_state == reconstruct_state_drain_result) {
3361 int qd_idx = sh->qd_idx;
3362 3361
3363 sh->reconstruct_state = reconstruct_state_idle; 3362 sh->reconstruct_state = reconstruct_state_idle;
3364 /* All the 'written' buffers and the parity blocks are ready to 3363 /* All the 'written' buffers and the parity blocks are ready to
@@ -3741,7 +3740,7 @@ static int chunk_aligned_read(struct request_queue *q, struct bio * raid_bio)
3741{ 3740{
3742 mddev_t *mddev = q->queuedata; 3741 mddev_t *mddev = q->queuedata;
3743 raid5_conf_t *conf = mddev->private; 3742 raid5_conf_t *conf = mddev->private;
3744 unsigned int dd_idx; 3743 int dd_idx;
3745 struct bio* align_bi; 3744 struct bio* align_bi;
3746 mdk_rdev_t *rdev; 3745 mdk_rdev_t *rdev;
3747 3746