result of csum_fold() is already 16bit, no need to cast
Subsystems (3)
PATCH 1/1 result of csum_fold() is already 16bit, no need to cast
Signed-off-by Al Viro <[email protected]>
--- net/ipv6/ip6mr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/ipv6/ip6mr.c +1 -1
@@ -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 */
Signature · 1 line
1.5.3.GIT
From: Al Viro <[email protected]>
Date: Sun, 27 Apr 2008 06:27:30 +0100
Quoted 1 line
Signed-off-by Al Viro <[email protected]>
Applied, thanks Al.