aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2008-11-19 18:44:53 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-19 18:44:53 -0500
commit07f0757a6808f2f36a0e58c3a54867ccffdb8dc9 (patch)
treee04b573c3f1471ff21c6b2499682a620f4db7eae /net/ipv4/tcp_ipv4.c
parenta7a0d6a87b70f7b2bab5281fc0fd443772bd0795 (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/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index b2e3ab2287ba..5559fea61e87 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -492,7 +492,7 @@ void tcp_v4_send_check(struct sock *sk, int len, struct sk_buff *skb)
492 skb->csum_offset = offsetof(struct tcphdr, check); 492 skb->csum_offset = offsetof(struct tcphdr, check);
493 } else { 493 } else {
494 th->check = tcp_v4_check(len, inet->saddr, inet->daddr, 494 th->check = tcp_v4_check(len, inet->saddr, inet->daddr,
495 csum_partial((char *)th, 495 csum_partial(th,
496 th->doff << 2, 496 th->doff << 2,
497 skb->csum)); 497 skb->csum));
498 } 498 }
@@ -726,7 +726,7 @@ static int __tcp_v4_send_synack(struct sock *sk, struct request_sock *req,
726 th->check = tcp_v4_check(skb->len, 726 th->check = tcp_v4_check(skb->len,
727 ireq->loc_addr, 727 ireq->loc_addr,
728 ireq->rmt_addr, 728 ireq->rmt_addr,
729 csum_partial((char *)th, skb->len, 729 csum_partial(th, skb->len,
730 skb->csum)); 730 skb->csum));
731 731
732 err = ip_build_and_send_pkt(skb, sk, ireq->loc_addr, 732 err = ip_build_and_send_pkt(skb, sk, ireq->loc_addr,