diff options
author | Geliang Tang <tanggeliang@kylinos.cn> | 2025-02-21 16:43:58 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-02-24 18:23:43 -0800 |
commit | 640e3d69d0bc70d7d3de34800a1640793262bd08 (patch) | |
tree | b14049f9b6b188dabcce99df0ec38b0169e6c381 /rust/helpers/security.c | |
parent | f8fe8174657329609a80f66da1d3dd80a80de76b (diff) |
mptcp: pm: drop match in userspace_pm_append_new_local_addr
The variable 'match' in mptcp_userspace_pm_append_new_local_addr() is a
redundant one, and this patch drops it.
No need to define 'match' as 'struct mptcp_pm_addr_entry *' type. In this
function, it's only used to check whether it's NULL. It can be defined as
a Boolean one.
Also other variables 'addr_match' and 'id_match' make 'match' a redundant
one, which can be replaced by directly checking 'addr_match && id_match'.
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250221-net-next-mptcp-pm-misc-cleanup-3-v1-5-2b70ab1cee79@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions