提交 6629542e 编写于 作者: D Dan Williams

md/raid6: kill a gcc-4.0.1 'uninitialized variable' warning

Signed-off-by: NDan Williams <dan.j.williams@intel.com>
上级 b2141e69
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册