aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorGeliang Tang <[email protected]>2024-12-13 19:52:58 +0000
committerJakub Kicinski <[email protected]>2024-12-15 22:28:34 +0000
commit5409fd6fec680d59111708ba337b09c1d36db0a8 (patch)
tree5a18eb6bf6bbdd7aacbddb0e27f137f9d74b4286 /net/unix/unix_bpf.c
parentmptcp: change local addr type of subflow_destroy (diff)
downloadkernel-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