Skip to content

Commit baf9e78

Browse files
author
Gerrit Renker
committed
dccp: remove unused argument in CCID tx function
This removes the argument `more' from ccid_hc_tx_packet_sent, since it was nowhere used in the entire code. (Btw, this argument was not even used in the original KAME code where the function initially came from; compare the variable moreToSend in the freebsd61-dccp-kame-28.08.2006.patch kept by Emmanuel Lochin.) Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
1 parent 93344af commit baf9e78

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎net/dccp/ccid.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct ccid_operations {
7373
int (*ccid_hc_tx_send_packet)(struct sock *sk,
7474
struct sk_buff *skb);
7575
void (*ccid_hc_tx_packet_sent)(struct sock *sk,
76-
int more, unsigned int len);
76+
unsigned int len);
7777
void (*ccid_hc_rx_get_info)(struct sock *sk,
7878
struct tcp_info *info);
7979
void (*ccid_hc_tx_get_info)(struct sock *sk,
@@ -144,10 +144,10 @@ static inline int ccid_hc_tx_send_packet(struct ccid *ccid, struct sock *sk,
144144
}
145145

146146
static inline void ccid_hc_tx_packet_sent(struct ccid *ccid, struct sock *sk,
147-
int more, unsigned int len)
147+
unsigned int len)
148148
{
149149
if (ccid->ccid_ops->ccid_hc_tx_packet_sent != NULL)
150-
ccid->ccid_ops->ccid_hc_tx_packet_sent(sk, more, len);
150+
ccid->ccid_ops->ccid_hc_tx_packet_sent(sk, len);
151151
}
152152

153153
static inline void ccid_hc_rx_packet_recv(struct ccid *ccid, struct sock *sk,

‎net/dccp/ccids/ccid2.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static void ccid2_hc_tx_rto_expire(unsigned long data)
151151
sock_put(sk);
152152
}
153153

154-
static void ccid2_hc_tx_packet_sent(struct sock *sk, int more, unsigned int len)
154+
static void ccid2_hc_tx_packet_sent(struct sock *sk, unsigned int len)
155155
{
156156
struct dccp_sock *dp = dccp_sk(sk);
157157
struct ccid2_hc_tx_sock *hc = ccid2_hc_tx_sk(sk);

‎net/dccp/ccids/ccid3.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,7 @@ static int ccid3_hc_tx_send_packet(struct sock *sk, struct sk_buff *skb)
351351
return 0;
352352
}
353353

354-
static void ccid3_hc_tx_packet_sent(struct sock *sk, int more,
355-
unsigned int len)
354+
static void ccid3_hc_tx_packet_sent(struct sock *sk, unsigned int len)
356355
{
357356
struct ccid3_hc_tx_sock *hc = ccid3_hc_tx_sk(sk);
358357

‎net/dccp/output.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ void dccp_write_xmit(struct sock *sk, int block)
304304
dcb->dccpd_type = DCCP_PKT_DATA;
305305

306306
err = dccp_transmit_skb(sk, skb);
307-
ccid_hc_tx_packet_sent(dp->dccps_hc_tx_ccid, sk, 0, len);
307+
ccid_hc_tx_packet_sent(dp->dccps_hc_tx_ccid, sk, len);
308308
if (err)
309309
DCCP_BUG("err=%d after ccid_hc_tx_packet_sent",
310310
err);

0 commit comments

Comments
 (0)