patch-2.1.73 linux/include/asm-mips/checksum.h

Next file: linux/include/asm-mips/cpu.h
Previous file: linux/include/asm-mips/byteorder.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.72/linux/include/asm-mips/checksum.h linux/include/asm-mips/checksum.h
@@ -5,9 +5,7 @@
  * License.  See the file "COPYING" in the main directory of this archive
  * for more details.
  *
- * Copyright (C) 1995, 1996, 1997 by Ralf Baechle
- *
- * $Id: checksum.h,v 1.5 1997/08/08 20:22:28 miguel Exp $
+ * Copyright (C) 1995 by Ralf Baechle
  */
 #ifndef __ASM_MIPS_CHECKSUM_H
 #define __ASM_MIPS_CHECKSUM_H
@@ -167,10 +165,7 @@
  */
 static inline unsigned short ip_compute_csum(unsigned char * buff, int len)
 {
-	unsigned int sum;
-
-	sum = csum_partial(buff, len, 0);
-	return csum_fold(sum);
+	return csum_fold(csum_partial(buff, len, 0));
 }
 
 #define _HAVE_ARCH_IPV6_CSUM

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov