Skip to content

Commit 4933da2

Browse files
MoYuanhaointel-lab-lkp
authored andcommitted
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 <[email protected]>
1 parent a5cbd4c commit 4933da2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/mptcp/subflow.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2049,7 +2049,6 @@ static void subflow_ulp_clone(const struct request_sock *req,
20492049
new_ctx->tcp_state_change = old_ctx->tcp_state_change;
20502050
new_ctx->tcp_error_report = old_ctx->tcp_error_report;
20512051
new_ctx->rel_write_seq = 1;
2052-
new_ctx->tcp_sock = newsk;
20532052

20542053
if (subflow_req->mp_capable) {
20552054
/* see comments in subflow_syn_recv_sock(), MPTCP connection

0 commit comments

Comments
 (0)