diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/lib64/c-checksum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/lib64/c-checksum.c b/arch/sh/lib64/c-checksum.c index 5c284e0cff9c..73c0877e3a29 100644 --- a/arch/sh/lib64/c-checksum.c +++ b/arch/sh/lib64/c-checksum.c | |||
@@ -35,7 +35,7 @@ static inline unsigned short foldto16(unsigned long x) | |||
35 | 35 | ||
36 | static inline unsigned short myfoldto16(unsigned long long x) | 36 | static inline unsigned short myfoldto16(unsigned long long x) |
37 | { | 37 | { |
38 | /* Fold down to 32-bits so we don't loose in the typedef-less | 38 | /* Fold down to 32-bits so we don't lose in the typedef-less |
39 | network stack. */ | 39 | network stack. */ |
40 | /* 64 to 33 */ | 40 | /* 64 to 33 */ |
41 | x = (x & 0xffffffff) + (x >> 32); | 41 | x = (x & 0xffffffff) + (x >> 32); |
@@ -199,7 +199,7 @@ __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, | |||
199 | result = (__force u64) saddr + (__force u64) daddr + | 199 | result = (__force u64) saddr + (__force u64) daddr + |
200 | (__force u64) sum + ((len + proto) << 8); | 200 | (__force u64) sum + ((len + proto) << 8); |
201 | 201 | ||
202 | /* Fold down to 32-bits so we don't loose in the typedef-less | 202 | /* Fold down to 32-bits so we don't lose in the typedef-less |
203 | network stack. */ | 203 | network stack. */ |
204 | /* 64 to 33 */ | 204 | /* 64 to 33 */ |
205 | result = (result & 0xffffffff) + (result >> 32); | 205 | result = (result & 0xffffffff) + (result >> 32); |