Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
6629542e
Commit
6629542e
authored
Oct 19, 2009
by
Dan Williams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
md/raid6: kill a gcc-4.0.1 'uninitialized variable' warning
Signed-off-by:
Dan Williams
<
dan.j.williams@intel.com
>
parent
b2141e69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/md/raid5.c
drivers/md/raid5.c
+3
-3
No files found.
drivers/md/raid5.c
View file @
6629542e
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment