projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
874807a
)
md: removed unused variable in calc_sb_1_csm.
author
NeilBrown
<neilb@suse.de>
Tue, 11 Dec 2012 02:09:00 +0000
(13:09 +1100)
committer
NeilBrown
<neilb@suse.de>
Tue, 11 Dec 2012 02:09:00 +0000
(13:09 +1100)
'i' is unused.
NeilBrown <neilb@suse.de>
drivers/md/md.c
patch
|
blob
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 61200717687b85b3fed040f9599ffd1987b8842d..89dbd444517e916176baa02a419f47f056e845c8 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-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)