summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-12-14 12:49:47 +1100
committerNeilBrown <neilb@suse.de>2009-12-14 12:49:47 +1100
commit8553fe7ec731e4f997245e14319572cb15118018 (patch)
tree14cf104937c6260f00420e32e237eb0714db9389 /drivers/md/raid5.c
parentaa5cbd103887011b4830355f88fb055f9ad2d556 (diff)
downloadop-kernel-dev-8553fe7ec731e4f997245e14319572cb15118018.zip
op-kernel-dev-8553fe7ec731e4f997245e14319572cb15118018.tar.gz
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 d29215d..34cb065 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -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;
OpenPOWER on IntegriCloud