]> git.baikalelectronics.ru Git - kernel.git/commitdiff
md/raid5: remove some sparse warnings.
authorNeilBrown <neilb@suse.de>
Mon, 14 Dec 2009 01:49:47 +0000 (12:49 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 14 Dec 2009 01:49:47 +0000 (12:49 +1100)
qd_idx is previously declared and given exactly the same value!

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c

index d29215d966dadc23f4c1a6844a725dc89d6a8304..34cb065f6d668b0102a2acf82d5459defd79ccb9 100644 (file)
@@ -3358,7 +3358,6 @@ static void handle_stripe6(struct stripe_head *sh)
         * completed
         */
        if (sh->reconstruct_state == reconstruct_state_drain_result) {
-               int qd_idx = sh->qd_idx;
 
                sh->reconstruct_state = reconstruct_state_idle;
                /* 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)
 {
        mddev_t *mddev = q->queuedata;
        raid5_conf_t *conf = mddev->private;
-       unsigned int dd_idx;
+       int dd_idx;
        struct bio* align_bi;
        mdk_rdev_t *rdev;