Commit 1f3c9907 authored by NeilBrown's avatar NeilBrown

md: removed unused variable in calc_sb_1_csm.

'i' is unused.

NeilBrown <neilb@suse.de>
parent 874807a8
...@@ -1414,12 +1414,11 @@ static __le32 calc_sb_1_csum(struct mdp_superblock_1 * sb) ...@@ -1414,12 +1414,11 @@ static __le32 calc_sb_1_csum(struct mdp_superblock_1 * sb)
unsigned long long newcsum; unsigned long long newcsum;
int size = 256 + le32_to_cpu(sb->max_dev)*2; int size = 256 + le32_to_cpu(sb->max_dev)*2;
__le32 *isuper = (__le32*)sb; __le32 *isuper = (__le32*)sb;
int i;
disk_csum = sb->sb_csum; disk_csum = sb->sb_csum;
sb->sb_csum = 0; sb->sb_csum = 0;
newcsum = 0; newcsum = 0;
for (i=0; size>=4; size -= 4 ) for (; size >= 4; size -= 4)
newcsum += le32_to_cpu(*isuper++); newcsum += le32_to_cpu(*isuper++);
if (size == 2) if (size == 2)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment