summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--super1.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/super1.c b/super1.c
index 9dc6644..467ff68 100644
--- a/super1.c
+++ b/super1.c
@@ -124,8 +124,10 @@ static unsigned int calc_sb_1_csum(struct mdp_superblock_1 * sb)
disk_csum = sb->sb_csum;
sb->sb_csum = 0;
newcsum = 0;
- for (i=0; size>=4; size -= 4 )
- newcsum += __le32_to_cpu(*isuper++);
+ for (i=0; size>=4; size -= 4 ) {
+ newcsum += __le32_to_cpu(*isuper);
+ isuper++;
+ }
if (size == 2)
newcsum += __le16_to_cpu(*(unsigned short*) isuper);