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
nexedi
linux
Commits
1f3c9907
Commit
1f3c9907
authored
Dec 11, 2012
by
NeilBrown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
md: removed unused variable in calc_sb_1_csm.
'i' is unused. NeilBrown <neilb@suse.de>
parent
874807a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
drivers/md/md.c
drivers/md/md.c
+1
-2
No files found.
drivers/md/md.c
View file @
1f3c9907
...
...
@@ -1414,12 +1414,11 @@ static __le32 calc_sb_1_csum(struct mdp_superblock_1 * sb)
unsigned
long
long
newcsum
;
int
size
=
256
+
le32_to_cpu
(
sb
->
max_dev
)
*
2
;
__le32
*
isuper
=
(
__le32
*
)
sb
;
int
i
;
disk_csum
=
sb
->
sb_csum
;
sb
->
sb_csum
=
0
;
newcsum
=
0
;
for
(
i
=
0
;
size
>=
4
;
size
-=
4
)
for
(
;
size
>=
4
;
size
-=
4
)
newcsum
+=
le32_to_cpu
(
*
isuper
++
);
if
(
size
==
2
)
...
...
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