MIPS: Use generic csum_tcpudp_magic for MIPS.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 17 Dec 2014 22:05:10 +0000 (23:05 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 13 Jan 2015 15:04:27 +0000 (16:04 +0100)
Its implementation is identical to MIPS.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/checksum.h

index 64ae32c082d19826ffb902a75f9a0f83a5bcb890..5996252680c6574964fdca6e3ebde674888ab691 100644 (file)
@@ -199,19 +199,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