aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-10-19 21:09:32 -0400
committerDan Williams <dan.j.williams@intel.com>2009-10-19 21:09:41 -0400
commit6629542e79255e0dbef8ec82eaf644e1b2546c3c (patch)
tree10878adc7a42868b2ded58acbe5bb4135347b607 /drivers/md
parentb2141e6951ad56c8f65e70547baeabd5698e390a (diff)
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.c6
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)
156static int raid6_idx_to_slot(int idx, struct stripe_head *sh, 156static int raid6_idx_to_slot(int idx, struct stripe_head *sh,
157 int *count, int syndrome_disks) 157 int *count, int syndrome_disks)
158{ 158{
159 int slot; 159 int slot = *count;
160 160
161 if (sh->ddf_layout) 161 if (sh->ddf_layout)
162 slot = (*count)++; 162 (*count)++;
163 if (idx == sh->pd_idx) 163 if (idx == sh->pd_idx)
164 return syndrome_disks; 164 return syndrome_disks;
165 if (idx == sh->qd_idx) 165 if (idx == sh->qd_idx)
166 return syndrome_disks + 1; 166 return syndrome_disks + 1;
167 if (!sh->ddf_layout) 167 if (!sh->ddf_layout)
168 slot = (*count)++; 168 (*count)++;
169 return slot; 169 return slot;
170} 170}
171 171