Skip to content

Commit 8b5e07d

Browse files
ZhiqiangLiu26davem330
authored andcommitted
inet_connection_sock: remove unused parameter of reqsk_queue_unlink func
small cleanup: "struct request_sock_queue *queue" parameter of reqsk_queue_unlink func is never used in the func, so we can remove it. Signed-off-by: Zhiqiang Liu <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2bd229d commit 8b5e07d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

net/ipv4/inet_connection_sock.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,8 +653,7 @@ int inet_rtx_syn_ack(const struct sock *parent, struct request_sock *req)
653653
EXPORT_SYMBOL(inet_rtx_syn_ack);
654654

655655
/* return true if req was found in the ehash table */
656-
static bool reqsk_queue_unlink(struct request_sock_queue *queue,
657-
struct request_sock *req)
656+
static bool reqsk_queue_unlink(struct request_sock *req)
658657
{
659658
struct inet_hashinfo *hashinfo = req_to_sk(req)->sk_prot->h.hashinfo;
660659
bool found = false;
@@ -673,7 +672,7 @@ static bool reqsk_queue_unlink(struct request_sock_queue *queue,
673672

674673
void inet_csk_reqsk_queue_drop(struct sock *sk, struct request_sock *req)
675674
{
676-
if (reqsk_queue_unlink(&inet_csk(sk)->icsk_accept_queue, req)) {
675+
if (reqsk_queue_unlink(req)) {
677676
reqsk_queue_removed(&inet_csk(sk)->icsk_accept_queue, req);
678677
reqsk_put(req);
679678
}

0 commit comments

Comments
 (0)