summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-12-11 03:09:00 +0100
committerNeilBrown <neilb@suse.de>2012-12-11 03:09:00 +0100
commit1f3c9907b8037de7b9635b0b471572ea8758bcd1 (patch)
treea316efed038ec0f22aa8ad7bfc35d11dec4acde0 /drivers/md
parentmd/raid1{,0}: fix deadlock in bitmap_unplug. (diff)
downloadlinux-1f3c9907b8037de7b9635b0b471572ea8758bcd1.tar.xz
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)