Skip to content

Commit

Permalink
mptcp: remove the redundant assignment of 'new_ctx->tcp_sock' in subf…
Browse files Browse the repository at this point in the history
…low_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]>
  • Loading branch information
MoYuanhao authored and intel-lab-lkp committed Nov 6, 2024
1 parent a5cbd4c commit 4933da2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/mptcp/subflow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4933da2

Please sign in to comment.