Skip to content

Commit bb29624

Browse files
herbertxdavem330
authored andcommitted
inet: Remove unused send_check length argument
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>
1 parent 8ad50d9 commit bb29624

9 files changed

Lines changed: 9 additions & 11 deletions

File tree

‎include/net/inet_connection_sock.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ struct tcp_congestion_ops;
3737
*/
3838
struct inet_connection_sock_af_ops {
3939
int (*queue_xmit)(struct sk_buff *skb, int ipfragok);
40-
void (*send_check)(struct sock *sk, int len,
41-
struct sk_buff *skb);
40+
void (*send_check)(struct sock *sk, struct sk_buff *skb);
4241
int (*rebuild_header)(struct sock *sk);
4342
int (*conn_request)(struct sock *sk, struct sk_buff *skb);
4443
struct sock *(*syn_recv_sock)(struct sock *sk, struct sk_buff *skb,

‎include/net/tcp.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ extern u8 *tcp_parse_md5sig_option(struct tcphdr *th);
423423
* TCP v4 functions exported for the inet6 API
424424
*/
425425

426-
extern void tcp_v4_send_check(struct sock *sk, int len,
426+
extern void tcp_v4_send_check(struct sock *sk,
427427
struct sk_buff *skb);
428428

429429
extern int tcp_v4_conn_request(struct sock *sk,

‎net/dccp/dccp.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ static inline void dccp_csum_outgoing(struct sk_buff *skb)
223223
skb->csum = skb_checksum(skb, 0, (cov > skb->len)? skb->len : cov, 0);
224224
}
225225

226-
extern void dccp_v4_send_check(struct sock *sk, int len, struct sk_buff *skb);
226+
extern void dccp_v4_send_check(struct sock *sk, struct sk_buff *skb);
227227

228228
extern int dccp_retransmit_skb(struct sock *sk);
229229

‎net/dccp/ipv4.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ static inline __sum16 dccp_v4_csum_finish(struct sk_buff *skb,
349349
return csum_tcpudp_magic(src, dst, skb->len, IPPROTO_DCCP, skb->csum);
350350
}
351351

352-
void dccp_v4_send_check(struct sock *sk, int unused, struct sk_buff *skb)
352+
void dccp_v4_send_check(struct sock *sk, struct sk_buff *skb)
353353
{
354354
const struct inet_sock *inet = inet_sk(sk);
355355
struct dccp_hdr *dh = dccp_hdr(skb);

‎net/dccp/ipv6.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ static inline __sum16 dccp_v6_csum_finish(struct sk_buff *skb,
6060
return csum_ipv6_magic(saddr, daddr, skb->len, IPPROTO_DCCP, skb->csum);
6161
}
6262

63-
static inline void dccp_v6_send_check(struct sock *sk, int unused_value,
64-
struct sk_buff *skb)
63+
static inline void dccp_v6_send_check(struct sock *sk, struct sk_buff *skb)
6564
{
6665
struct ipv6_pinfo *np = inet6_sk(sk);
6766
struct dccp_hdr *dh = dccp_hdr(skb);

‎net/dccp/output.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static int dccp_transmit_skb(struct sock *sk, struct sk_buff *skb)
129129
break;
130130
}
131131

132-
icsk->icsk_af_ops->send_check(sk, 0, skb);
132+
icsk->icsk_af_ops->send_check(sk, skb);
133133

134134
if (set_ack)
135135
dccp_event_ack_sent(sk);

‎net/ipv4/tcp_ipv4.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ static void __tcp_v4_send_check(struct sk_buff *skb,
537537
}
538538

539539
/* This routine computes an IPv4 TCP checksum. */
540-
void tcp_v4_send_check(struct sock *sk, int len, struct sk_buff *skb)
540+
void tcp_v4_send_check(struct sock *sk, struct sk_buff *skb)
541541
{
542542
struct inet_sock *inet = inet_sk(sk);
543543

‎net/ipv4/tcp_output.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it,
878878
}
879879
#endif
880880

881-
icsk->icsk_af_ops->send_check(sk, skb->len, skb);
881+
icsk->icsk_af_ops->send_check(sk, skb);
882882

883883
if (likely(tcb->flags & TCPCB_FLAG_ACK))
884884
tcp_event_ack_sent(sk, tcp_skb_pcount(skb));

‎net/ipv6/tcp_ipv6.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ static void __tcp_v6_send_check(struct sk_buff *skb,
933933
}
934934
}
935935

936-
static void tcp_v6_send_check(struct sock *sk, int len, struct sk_buff *skb)
936+
static void tcp_v6_send_check(struct sock *sk, struct sk_buff *skb)
937937
{
938938
struct ipv6_pinfo *np = inet6_sk(sk);
939939

0 commit comments

Comments
 (0)