]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
inet: Remove unused send_check length argument
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 11 Apr 2010 02:15:55 +0000 (02:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Apr 2010 22:29:09 +0000 (15:29 -0700)
inet: Remove unused send_check length argument

This patch removes the unused length argument from the send_check
function in struct inet_connection_sock_af_ops.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Yinghai <yinghai.lu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_connection_sock.h
include/net/tcp.h
net/dccp/dccp.h
net/dccp/ipv4.c
net/dccp/ipv6.c
net/dccp/output.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_output.c
net/ipv6/tcp_ipv6.c

index 696d6e4ce68a0e72b857b1d569c1bb98c5ceeca0..52c8b8b8a0b964bfac316202c1218ba0694962dc 100644 (file)
@@ -37,8 +37,7 @@ struct tcp_congestion_ops;
  */
 struct inet_connection_sock_af_ops {
        int         (*queue_xmit)(struct sk_buff *skb, int ipfragok);
-       void        (*send_check)(struct sock *sk, int len,
-                                 struct sk_buff *skb);
+       void        (*send_check)(struct sock *sk, struct sk_buff *skb);
        int         (*rebuild_header)(struct sock *sk);
        int         (*conn_request)(struct sock *sk, struct sk_buff *skb);
        struct sock *(*syn_recv_sock)(struct sock *sk, struct sk_buff *skb,
index 75be5a28815d5d2759976a003a2f9f8f0ac9a1c9..70c5159f4b369a5ce382341ce0b4d46fa321799c 100644 (file)
@@ -423,7 +423,7 @@ extern u8                   *tcp_parse_md5sig_option(struct tcphdr *th);
  *     TCP v4 functions exported for the inet6 API
  */
 
-extern void                    tcp_v4_send_check(struct sock *sk, int len,
+extern void                    tcp_v4_send_check(struct sock *sk,
                                                  struct sk_buff *skb);
 
 extern int                     tcp_v4_conn_request(struct sock *sk,
index 53f8e12d0c10a849f74f0a01343935775b5fab50..a10a61a1ded2911ee4a18ab0f3d75e9380513b82 100644 (file)
@@ -223,7 +223,7 @@ static inline void dccp_csum_outgoing(struct sk_buff *skb)
        skb->csum = skb_checksum(skb, 0, (cov > skb->len)? skb->len : cov, 0);
 }
 
-extern void dccp_v4_send_check(struct sock *sk, int len, struct sk_buff *skb);
+extern void dccp_v4_send_check(struct sock *sk, struct sk_buff *skb);
 
 extern int  dccp_retransmit_skb(struct sock *sk);
 
index 52ffa1cde15a07f597470a15d7fd5ad25bd1e695..d9b11ef8694c1732b609d21782141eca71dcfcce 100644 (file)
@@ -349,7 +349,7 @@ static inline __sum16 dccp_v4_csum_finish(struct sk_buff *skb,
        return csum_tcpudp_magic(src, dst, skb->len, IPPROTO_DCCP, skb->csum);
 }
 
-void dccp_v4_send_check(struct sock *sk, int unused, struct sk_buff *skb)
+void dccp_v4_send_check(struct sock *sk, struct sk_buff *skb)
 {
        const struct inet_sock *inet = inet_sk(sk);
        struct dccp_hdr *dh = dccp_hdr(skb);
index 3b11e41a2929e717ded1865c864a6f7b1b5fb7e0..ab1ab95946dfaeed03dfe846eb37ca48689f5398 100644 (file)
@@ -60,8 +60,7 @@ static inline __sum16 dccp_v6_csum_finish(struct sk_buff *skb,
        return csum_ipv6_magic(saddr, daddr, skb->len, IPPROTO_DCCP, skb->csum);
 }
 
-static inline void dccp_v6_send_check(struct sock *sk, int unused_value,
-                                     struct sk_buff *skb)
+static inline void dccp_v6_send_check(struct sock *sk, struct sk_buff *skb)
 {
        struct ipv6_pinfo *np = inet6_sk(sk);
        struct dccp_hdr *dh = dccp_hdr(skb);
index fc3f436440b48980f01a05cb97f80960e4f5fd5a..b8d98e3c052aca7816fc39c5536b921ac030ab07 100644 (file)
@@ -129,7 +129,7 @@ static int dccp_transmit_skb(struct sock *sk, struct sk_buff *skb)
                        break;
                }
 
-               icsk->icsk_af_ops->send_check(sk, 0, skb);
+               icsk->icsk_af_ops->send_check(sk, skb);
 
                if (set_ack)
                        dccp_event_ack_sent(sk);
index aebfd28c50892decde5084f01c733ca5dd3d05a3..a24995cdc4b65219af97416846c8e9bf5d190f3b 100644 (file)
@@ -537,7 +537,7 @@ static void __tcp_v4_send_check(struct sk_buff *skb,
 }
 
 /* This routine computes an IPv4 TCP checksum. */
-void tcp_v4_send_check(struct sock *sk, int len, struct sk_buff *skb)
+void tcp_v4_send_check(struct sock *sk, struct sk_buff *skb)
 {
        struct inet_sock *inet = inet_sk(sk);
 
index 0dda86e72ad8b6d60e24d62128ccadf7ae65a0fe..0ae7ce7a71a6f14031067b1cc2f345d6f57c21a9 100644 (file)
@@ -878,7 +878,7 @@ static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it,
        }
 #endif
 
-       icsk->icsk_af_ops->send_check(sk, skb->len, skb);
+       icsk->icsk_af_ops->send_check(sk, skb);
 
        if (likely(tcb->flags & TCPCB_FLAG_ACK))
                tcp_event_ack_sent(sk, tcp_skb_pcount(skb));
index f84c506c588a312bc783d76c0267056a556efe96..b429dfdd69dce9405d9eae23c9ef560f09c25751 100644 (file)
@@ -933,7 +933,7 @@ static void __tcp_v6_send_check(struct sk_buff *skb,
        }
 }
 
-static void tcp_v6_send_check(struct sock *sk, int len, struct sk_buff *skb)
+static void tcp_v6_send_check(struct sock *sk, struct sk_buff *skb)
 {
        struct ipv6_pinfo *np = inet6_sk(sk);