diff options
author | Joe Perches <joe@perches.com> | 2008-11-19 18:44:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-19 18:44:53 -0500 |
commit | 07f0757a6808f2f36a0e58c3a54867ccffdb8dc9 (patch) | |
tree | e04b573c3f1471ff21c6b2499682a620f4db7eae /net/ipv6/ndisc.c | |
parent | a7a0d6a87b70f7b2bab5281fc0fd443772bd0795 (diff) |
include/net net/ - csum_partial - remove unnecessary casts
The first argument to csum_partial is const void *
casts to char/u8 * are not necessary
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ndisc.c')
-rw-r--r-- | net/ipv6/ndisc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index fbf451c0d77a..af6705f03b5c 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
@@ -491,7 +491,7 @@ struct sk_buff *ndisc_build_skb(struct net_device *dev, | |||
491 | 491 | ||
492 | hdr->icmp6_cksum = csum_ipv6_magic(saddr, daddr, len, | 492 | hdr->icmp6_cksum = csum_ipv6_magic(saddr, daddr, len, |
493 | IPPROTO_ICMPV6, | 493 | IPPROTO_ICMPV6, |
494 | csum_partial((__u8 *) hdr, | 494 | csum_partial(hdr, |
495 | len, 0)); | 495 | len, 0)); |
496 | 496 | ||
497 | return skb; | 497 | return skb; |
@@ -1612,7 +1612,7 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh, | |||
1612 | 1612 | ||
1613 | icmph->icmp6_cksum = csum_ipv6_magic(&saddr_buf, &ipv6_hdr(skb)->saddr, | 1613 | icmph->icmp6_cksum = csum_ipv6_magic(&saddr_buf, &ipv6_hdr(skb)->saddr, |
1614 | len, IPPROTO_ICMPV6, | 1614 | len, IPPROTO_ICMPV6, |
1615 | csum_partial((u8 *) icmph, len, 0)); | 1615 | csum_partial(icmph, len, 0)); |
1616 | 1616 | ||
1617 | buff->dst = dst; | 1617 | buff->dst = dst; |
1618 | idev = in6_dev_get(dst->dev); | 1618 | idev = in6_dev_get(dst->dev); |