diff options
Diffstat (limited to 'arch/x86/lib/hash.c')
-rw-r--r-- | arch/x86/lib/hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/lib/hash.c b/arch/x86/lib/hash.c index 060cc4415bd9..ac628aa93a51 100644 --- a/arch/x86/lib/hash.c +++ b/arch/x86/lib/hash.c | |||
@@ -53,7 +53,7 @@ static u32 intel_crc4_2_hash(const void *data, u32 len, u32 seed) | |||
53 | u32 i, tmp = 0; | 53 | u32 i, tmp = 0; |
54 | 54 | ||
55 | for (i = 0; i < len / 4; i++) | 55 | for (i = 0; i < len / 4; i++) |
56 | seed = crc32_u32(*p32++, seed); | 56 | seed = crc32_u32(seed, *p32++); |
57 | 57 | ||
58 | switch (3 - (len & 0x03)) { | 58 | switch (3 - (len & 0x03)) { |
59 | case 0: | 59 | case 0: |
@@ -64,7 +64,7 @@ static u32 intel_crc4_2_hash(const void *data, u32 len, u32 seed) | |||
64 | /* fallthrough */ | 64 | /* fallthrough */ |
65 | case 2: | 65 | case 2: |
66 | tmp |= *((const u8 *) p32); | 66 | tmp |= *((const u8 *) p32); |
67 | seed = crc32_u32(tmp, seed); | 67 | seed = crc32_u32(seed, tmp); |
68 | default: | 68 | default: |
69 | break; | 69 | break; |
70 | } | 70 | } |
@@ -78,7 +78,7 @@ static u32 intel_crc4_2_hash2(const u32 *data, u32 len, u32 seed) | |||
78 | u32 i; | 78 | u32 i; |
79 | 79 | ||
80 | for (i = 0; i < len; i++) | 80 | for (i = 0; i < len; i++) |
81 | seed = crc32_u32(*p32++, seed); | 81 | seed = crc32_u32(seed, *p32++); |
82 | 82 | ||
83 | return seed; | 83 | return seed; |
84 | } | 84 | } |