diff options
author | MoYuanhao <moyuanhao3676@163.com> | 2024-11-06 08:10:35 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-11-09 18:09:07 +0100 |
commit | 7d28f4fc868ccc26124d368e8d2ead9d21c23542 (patch) | |
tree | 3c41ec273d52f5ebb8ea0002444cd94e089ca28c /net/mptcp | |
parent | net: mctp: Expose transport binding identifier via IFLA attribute (diff) | |
download | linux-7d28f4fc868ccc26124d368e8d2ead9d21c23542.tar.xz linux-7d28f4fc868ccc26124d368e8d2ead9d21c23542.zip |
mptcp: remove the redundant assignment of 'new_ctx->tcp_sock' in subflow_ulp_clone()
The variable has already been assigned in the subflow_create_ctx(),
So we don't need to reassign this variable in the subflow_ulp_clone().
Signed-off-by: MoYuanhao <moyuanhao3676@163.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20241106071035.2591-1-moyuanhao3676@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mptcp')
-rw-r--r-- | net/mptcp/subflow.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c index 07352b15f145..fd021cf8286e 100644 --- a/net/mptcp/subflow.c +++ b/net/mptcp/subflow.c @@ -2049,7 +2049,6 @@ static void subflow_ulp_clone(const struct request_sock *req, new_ctx->tcp_state_change = old_ctx->tcp_state_change; new_ctx->tcp_error_report = old_ctx->tcp_error_report; new_ctx->rel_write_seq = 1; - new_ctx->tcp_sock = newsk; if (subflow_req->mp_capable) { /* see comments in subflow_syn_recv_sock(), MPTCP connection |