diff options
author | NeilBrown <neilb@suse.de> | 2012-12-10 21:09:00 -0500 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-12-10 21:09:00 -0500 |
commit | 1f3c9907b8037de7b9635b0b471572ea8758bcd1 (patch) | |
tree | a316efed038ec0f22aa8ad7bfc35d11dec4acde0 /drivers/md | |
parent | 874807a83139abc094f939e93623c5623573d543 (diff) |
md: removed unused variable in calc_sb_1_csm.
'i' is unused.
NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/md.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 61200717687..89dbd444517 100644 --- 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) | |||
1414 | unsigned long long newcsum; | 1414 | unsigned long long newcsum; |
1415 | int size = 256 + le32_to_cpu(sb->max_dev)*2; | 1415 | int size = 256 + le32_to_cpu(sb->max_dev)*2; |
1416 | __le32 *isuper = (__le32*)sb; | 1416 | __le32 *isuper = (__le32*)sb; |
1417 | int i; | ||
1418 | 1417 | ||
1419 | disk_csum = sb->sb_csum; | 1418 | disk_csum = sb->sb_csum; |
1420 | sb->sb_csum = 0; | 1419 | sb->sb_csum = 0; |
1421 | newcsum = 0; | 1420 | newcsum = 0; |
1422 | for (i=0; size>=4; size -= 4 ) | 1421 | for (; size >= 4; size -= 4) |
1423 | newcsum += le32_to_cpu(*isuper++); | 1422 | newcsum += le32_to_cpu(*isuper++); |
1424 | 1423 | ||
1425 | if (size == 2) | 1424 | if (size == 2) |