diff options
| author | Zhiqiang Liu <liuzhiqiang26@huawei.com> | 2019-06-05 06:49:49 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-06-05 21:48:49 -0400 |
| commit | 8b5e07d7ee95e3c22cb301731f87d95f58639591 (patch) | |
| tree | 5343a3f56c61f8068698b65d3efff0d88381ee48 /net | |
| parent | 2bd229df5e2ecbc13909f71dbd196fced1d533ca (diff) | |
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 <liuzhiqiang26@huawei.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
| -rw-r--r-- | net/ipv4/inet_connection_sock.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index a175e3e7ae97..474e15762b62 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c | |||
| @@ -653,8 +653,7 @@ int inet_rtx_syn_ack(const struct sock *parent, struct request_sock *req) | |||
| 653 | EXPORT_SYMBOL(inet_rtx_syn_ack); | 653 | EXPORT_SYMBOL(inet_rtx_syn_ack); |
| 654 | 654 | ||
| 655 | /* return true if req was found in the ehash table */ | 655 | /* return true if req was found in the ehash table */ |
| 656 | static bool reqsk_queue_unlink(struct request_sock_queue *queue, | 656 | static bool reqsk_queue_unlink(struct request_sock *req) |
| 657 | struct request_sock *req) | ||
| 658 | { | 657 | { |
| 659 | struct inet_hashinfo *hashinfo = req_to_sk(req)->sk_prot->h.hashinfo; | 658 | struct inet_hashinfo *hashinfo = req_to_sk(req)->sk_prot->h.hashinfo; |
| 660 | bool found = false; | 659 | bool found = false; |
| @@ -673,7 +672,7 @@ static bool reqsk_queue_unlink(struct request_sock_queue *queue, | |||
| 673 | 672 | ||
| 674 | void inet_csk_reqsk_queue_drop(struct sock *sk, struct request_sock *req) | 673 | void inet_csk_reqsk_queue_drop(struct sock *sk, struct request_sock *req) |
| 675 | { | 674 | { |
| 676 | if (reqsk_queue_unlink(&inet_csk(sk)->icsk_accept_queue, req)) { | 675 | if (reqsk_queue_unlink(req)) { |
| 677 | reqsk_queue_removed(&inet_csk(sk)->icsk_accept_queue, req); | 676 | reqsk_queue_removed(&inet_csk(sk)->icsk_accept_queue, req); |
| 678 | reqsk_put(req); | 677 | reqsk_put(req); |
| 679 | } | 678 | } |
