projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2141e6
)
md/raid6: kill a gcc-4.0.1 'uninitialized variable' warning
author
Dan Williams
<dan.j.williams@intel.com>
Tue, 20 Oct 2009 01:09:32 +0000
(18:09 -0700)
committer
Dan Williams
<dan.j.williams@intel.com>
Tue, 20 Oct 2009 01:09:41 +0000
(18:09 -0700)
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/md/raid5.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/raid5.c
b/drivers/md/raid5.c
index dcd9e659ed9d20607fbaa0efdbb84a4af2e96e06..81abefc172d92d6d8cdb677695d3679de05391d1 100644
(file)
--- 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;
}