mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
md/raid6: kill a gcc-4.0.1 'uninitialized variable' warning
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
b2141e6951
commit
6629542e79
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue