[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1360689003-21794-1-git-send-email-pablo@netfilter.org>
Date: Tue, 12 Feb 2013 18:10:03 +0100
From: pablo@...filter.org
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, Arnd Bergmann <arnd@...db.de>
Subject: [PATCH] checksum: remove duplicated line of code in csum_fold
From: Pablo Neira Ayuso <pablo@...filter.org>
Signed-off-by: Pablo Neira Ayuso <pablo@...filter.org>
---
include/asm-generic/checksum.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/asm-generic/checksum.h b/include/asm-generic/checksum.h
index c084767..f68b2ea 100644
--- a/include/asm-generic/checksum.h
+++ b/include/asm-generic/checksum.h
@@ -51,7 +51,6 @@ static inline __sum16 csum_fold(__wsum csum)
{
u32 sum = (__force u32)csum;
sum = (sum & 0xffff) + (sum >> 16);
- sum = (sum & 0xffff) + (sum >> 16);
return (__force __sum16)~sum;
}
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists