From: Ralf Baechle Date: Wed, 17 Dec 2014 22:05:10 +0000 (+0100) Subject: MIPS: Use generic csum_tcpudp_magic for MIPS. X-Git-Tag: v4.9.8~4727^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f26c48824ece86ccc6e8d5889fbf338ebfc67e5;p=platform%2Fkernel%2Flinux-rpi3.git MIPS: Use generic csum_tcpudp_magic for MIPS. Its implementation is identical to MIPS. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/include/asm/checksum.h b/arch/mips/include/asm/checksum.h index 64ae32c..5996252 100644 --- a/arch/mips/include/asm/checksum.h +++ b/arch/mips/include/asm/checksum.h @@ -200,19 +200,6 @@ static inline __wsum csum_tcpudp_nofold(__be32 saddr, #define csum_tcpudp_nofold csum_tcpudp_nofold /* - * computes the checksum of the TCP/UDP pseudo-header - * returns a 16-bit checksum, already complemented - */ -static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, - unsigned short len, - unsigned short proto, - __wsum sum) -{ - return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); -} -#define csum_tcpudp_magic csum_tcpudp_magic - -/* * this routine is used for miscellaneous IP-like checksums, mainly * in icmp.c */