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/tcp_ipv6.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/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index b35787056313..a5d750acd793 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -501,7 +501,7 @@ static int tcp_v6_send_synack(struct sock *sk, struct request_sock *req) | |||
501 | 501 | ||
502 | th->check = tcp_v6_check(th, skb->len, | 502 | th->check = tcp_v6_check(th, skb->len, |
503 | &treq->loc_addr, &treq->rmt_addr, | 503 | &treq->loc_addr, &treq->rmt_addr, |
504 | csum_partial((char *)th, skb->len, skb->csum)); | 504 | csum_partial(th, skb->len, skb->csum)); |
505 | 505 | ||
506 | ipv6_addr_copy(&fl.fl6_dst, &treq->rmt_addr); | 506 | ipv6_addr_copy(&fl.fl6_dst, &treq->rmt_addr); |
507 | err = ip6_xmit(sk, skb, &fl, opt, 0); | 507 | err = ip6_xmit(sk, skb, &fl, opt, 0); |
@@ -915,7 +915,7 @@ static void tcp_v6_send_check(struct sock *sk, int len, struct sk_buff *skb) | |||
915 | skb->csum_offset = offsetof(struct tcphdr, check); | 915 | skb->csum_offset = offsetof(struct tcphdr, check); |
916 | } else { | 916 | } else { |
917 | th->check = csum_ipv6_magic(&np->saddr, &np->daddr, len, IPPROTO_TCP, | 917 | th->check = csum_ipv6_magic(&np->saddr, &np->daddr, len, IPPROTO_TCP, |
918 | csum_partial((char *)th, th->doff<<2, | 918 | csum_partial(th, th->doff<<2, |
919 | skb->csum)); | 919 | skb->csum)); |
920 | } | 920 | } |
921 | } | 921 | } |
@@ -997,7 +997,7 @@ static void tcp_v6_send_response(struct sk_buff *skb, u32 seq, u32 ack, u32 win, | |||
997 | } | 997 | } |
998 | #endif | 998 | #endif |
999 | 999 | ||
1000 | buff->csum = csum_partial((char *)t1, tot_len, 0); | 1000 | buff->csum = csum_partial(t1, tot_len, 0); |
1001 | 1001 | ||
1002 | memset(&fl, 0, sizeof(fl)); | 1002 | memset(&fl, 0, sizeof(fl)); |
1003 | ipv6_addr_copy(&fl.fl6_dst, &ipv6_hdr(skb)->saddr); | 1003 | ipv6_addr_copy(&fl.fl6_dst, &ipv6_hdr(skb)->saddr); |