Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

MoYuanhao and committed by
Jakub Kicinski
7d28f4fc 580db513

-1
-1
net/mptcp/subflow.c
··· 2049 2049 new_ctx->tcp_state_change = old_ctx->tcp_state_change; 2050 2050 new_ctx->tcp_error_report = old_ctx->tcp_error_report; 2051 2051 new_ctx->rel_write_seq = 1; 2052 - new_ctx->tcp_sock = newsk; 2053 2052 2054 2053 if (subflow_req->mp_capable) { 2055 2054 /* see comments in subflow_syn_recv_sock(), MPTCP connection