summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-12-11 13:09:00 +1100
committerNeilBrown <neilb@suse.de>2012-12-11 13:09:00 +1100
commit1f3c9907b8037de7b9635b0b471572ea8758bcd1 (patch)
treea316efed038ec0f22aa8ad7bfc35d11dec4acde0 /drivers/md
parent874807a83139abc094f939e93623c5623573d543 (diff)
downloadblackbird-op-linux-1f3c9907b8037de7b9635b0b471572ea8758bcd1.tar.gz
blackbird-op-linux-1f3c9907b8037de7b9635b0b471572ea8758bcd1.zip
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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 61200717687b..89dbd444517e 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)
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)
OpenPOWER on IntegriCloud