fib: remove unnecessary input parameters in fib_default_rule_add
authorZhengchao Shao <shaozhengchao@huawei.com>
Tue, 2 Jan 2024 07:15:19 +0000 (15:15 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Jan 2024 00:42:48 +0000 (16:42 -0800)
commitb4c1d4d9734cda4394da5b59ebf7d9ca3579561a
tree8400d14df4d65965f5dd3bb1e647a102d48c0041
parent5fe65375e3d45b9db11783eea067dfe404752d2f
fib: remove unnecessary input parameters in fib_default_rule_add

When fib_default_rule_add is invoked, the value of the input parameter
'flags' is always 0. Rules uses kzalloc to allocate memory, so 'flags' has
been initialized to 0. Therefore, remove the input parameter 'flags' in
fib_default_rule_add.

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240102071519.3781384-1-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/fib_rules.h
net/core/fib_rules.c
net/ipv4/fib_rules.c
net/ipv4/ipmr.c
net/ipv6/fib6_rules.c
net/ipv6/ip6mr.c