net: remove unnecessary input parameter 'how' in ifdown function
authorZhengchao Shao <shaozhengchao@huawei.com>
Mon, 21 Aug 2023 08:41:04 +0000 (16:41 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Aug 2023 11:19:02 +0000 (13:19 +0200)
commit43c2817225fce05701f062a996255007481935e2
treebfa121312853fe26b584f20512fe2bf4c752a224
parent3a198c95c95da10ad844cbeade2fe40bdf14c411
net: remove unnecessary input parameter 'how' in ifdown function

When the ifdown function in the dst_ops structure is referenced, the input
parameter 'how' is always true. In the current implementation of the
ifdown interface, ip6_dst_ifdown does not use the input parameter 'how',
xfrm6_dst_ifdown and xfrm4_dst_ifdown functions use the input parameter
'unregister'. But false judgment on 'unregister' in xfrm6_dst_ifdown and
xfrm4_dst_ifdown is false, so remove the input parameter 'how' in ifdown
function.

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230821084104.3812233-1-shaozhengchao@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/dst_ops.h
net/core/dst.c
net/ipv4/xfrm4_policy.c
net/ipv6/route.c
net/ipv6/xfrm6_policy.c