Netdev List
 help / color / mirror / Atom feed
* [PATCH] result of csum_fold() is already 16bit, no need to cast
@ 2008-04-27  5:27 Al Viro
  2008-04-27  5:29 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Al Viro @ 2008-04-27  5:27 UTC (permalink / raw)
  To: David Miller; +Cc: linux-kernel, netdev

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 net/ipv6/ip6mr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index c8c6e33..2de3c46 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -358,7 +358,7 @@ static int pim6_rcv(struct sk_buff *skb)
 	if (pim->type != ((PIM_VERSION << 4) | PIM_REGISTER) ||
 	    (pim->flags & PIM_NULL_REGISTER) ||
 	    (ip_compute_csum((void *)pim, sizeof(*pim)) != 0 &&
-	     (u16)csum_fold(skb_checksum(skb, 0, skb->len, 0))))
+	     csum_fold(skb_checksum(skb, 0, skb->len, 0))))
 		goto drop;
 
 	/* check if the inner packet is destined to mcast group */
-- 
1.5.3.GIT


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] result of csum_fold() is already 16bit, no need to cast
  2008-04-27  5:27 [PATCH] result of csum_fold() is already 16bit, no need to cast Al Viro
@ 2008-04-27  5:29 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-04-27  5:29 UTC (permalink / raw)
  To: viro; +Cc: linux-kernel, netdev

From: Al Viro <viro@ZenIV.linux.org.uk>
Date: Sun, 27 Apr 2008 06:27:30 +0100

> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Applied, thanks Al.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-27  5:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-27  5:27 [PATCH] result of csum_fold() is already 16bit, no need to cast Al Viro
2008-04-27  5:29 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox