summaryrefslogtreecommitdiffstats
path: root/super-intel.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-11-07 14:46:30 +1100
committerNeilBrown <neilb@suse.de>2008-11-07 14:46:30 +1100
commit97f734fde22e64affd46c957d9184e536bcc1026 (patch)
treecc0066d4088c9467c42464eee2796e123b8e834b /super-intel.c
parent1679bef2eeb641b77d72bf20e9fbbd555cc0a1cb (diff)
downloadmdadm-97f734fde22e64affd46c957d9184e536bcc1026.tar.gz
mdadm-97f734fde22e64affd46c957d9184e536bcc1026.tar.xz
mdadm-97f734fde22e64affd46c957d9184e536bcc1026.zip
A couple of bugfixes found by suse autobuilding:
1/ ia64 appear to have __clone2, not clone. 2/ Including "++" in the arg to a macro is a bad thing to do. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-intel.c')
-rw-r--r--super-intel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/super-intel.c b/super-intel.c
index 34dfb8f..a2b9bd2 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -271,8 +271,10 @@ static __u32 __gen_imsm_checksum(struct imsm_super *mpb)
__u32 *p = (__u32 *) mpb;
__u32 sum = 0;
- while (end--)
- sum += __le32_to_cpu(*p++);
+ while (end--) {
+ sum += __le32_to_cpu(*p);
+ p++;
+ }
return sum - __le32_to_cpu(mpb->check_sum);
}