diff options
| author | Geliang Tang <[email protected]> | 2024-12-13 19:52:58 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-12-15 22:28:34 +0000 |
| commit | 5409fd6fec680d59111708ba337b09c1d36db0a8 (patch) | |
| tree | 5a18eb6bf6bbdd7aacbddb0e27f137f9d74b4286 /net/unix/unix_bpf.c | |
| parent | mptcp: change local addr type of subflow_destroy (diff) | |
| download | kernel-5409fd6fec680d59111708ba337b09c1d36db0a8.tar.gz kernel-5409fd6fec680d59111708ba337b09c1d36db0a8.zip | |
mptcp: drop useless "err = 0" in subflow_destroy
Upon successful return, mptcp_pm_parse_addr() returns 0. There is no need
to set "err = 0" after this. So after mptcp_nl_find_ssk() returns, just
need to set "err = -ESRCH", then release and free msk socket if it returns
NULL.
Also, no need to define the variable "subflow" in subflow_destroy(), use
mptcp_subflow_ctx(ssk) directly.
This patch doesn't change the behaviour of the code, just refactoring.
Signed-off-by: Geliang Tang <[email protected]>
Reviewed-by: Matthieu Baerts (NGI0) <[email protected]>
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
Link: https://patch.msgid.link/20241213-net-next-mptcp-pm-misc-cleanup-v1-7-ddb6d00109a8@kernel.org
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
