summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorZhengchao Shao <shaozhengchao@huawei.com>2024-01-02 10:15:19 +0300
committerJakub Kicinski <kuba@kernel.org>2024-01-04 03:42:48 +0300
commitb4c1d4d9734cda4394da5b59ebf7d9ca3579561a (patch)
tree8400d14df4d65965f5dd3bb1e647a102d48c0041 /include/net
parent5fe65375e3d45b9db11783eea067dfe404752d2f (diff)
downloadlinux-b4c1d4d9734cda4394da5b59ebf7d9ca3579561a.tar.xz
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>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/fib_rules.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h
index 82da359bca03..d17855c52ef9 100644
--- a/include/net/fib_rules.h
+++ b/include/net/fib_rules.h
@@ -172,8 +172,7 @@ void fib_rules_unregister(struct fib_rules_ops *);
int fib_rules_lookup(struct fib_rules_ops *, struct flowi *, int flags,
struct fib_lookup_arg *);
-int fib_default_rule_add(struct fib_rules_ops *, u32 pref, u32 table,
- u32 flags);
+int fib_default_rule_add(struct fib_rules_ops *, u32 pref, u32 table);
bool fib_rule_matchall(const struct fib_rule *rule);
int fib_rules_dump(struct net *net, struct notifier_block *nb, int family,
struct netlink_ext_ack *extack);