diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-10-20 03:09:32 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-10-20 03:09:41 +0200 |
commit | 6629542e79255e0dbef8ec82eaf644e1b2546c3c (patch) | |
tree | 10878adc7a42868b2ded58acbe5bb4135347b607 /drivers/md | |
parent | raid6/async_tx: handle holes in block list in async_syndrome_val (diff) | |
download | linux-6629542e79255e0dbef8ec82eaf644e1b2546c3c.tar.xz linux-6629542e79255e0dbef8ec82eaf644e1b2546c3c.zip |
md/raid6: kill a gcc-4.0.1 'uninitialized variable' warning
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/raid5.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index dcd9e659ed9d..81abefc172d9 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -156,16 +156,16 @@ static inline int raid6_next_disk(int disk, int raid_disks) static int raid6_idx_to_slot(int idx, struct stripe_head *sh, int *count, int syndrome_disks) { - int slot; + int slot = *count; if (sh->ddf_layout) - slot = (*count)++; + (*count)++; if (idx == sh->pd_idx) return syndrome_disks; if (idx == sh->qd_idx) return syndrome_disks + 1; if (!sh->ddf_layout) - slot = (*count)++; + (*count)++; return slot; } |