Skip to content

Commit

Permalink
md: removed unused variable in calc_sb_1_csm.
Browse files Browse the repository at this point in the history
'i' is unused.

NeilBrown <[email protected]>
  • Loading branch information
neilbrown committed Dec 11, 2012
1 parent 874807a commit 1f3c990
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1f3c990

Please sign in to comment.