Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec6b486f authored by Al Viro's avatar Al Viro Committed by David S. Miller
Browse files

ipv6: result of csum_fold() is already 16bit, no need to cast

parent 5e2c433d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */