diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2024-01-02 15:15:19 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-01-03 16:42:48 -0800 |
commit | b4c1d4d9734cda4394da5b59ebf7d9ca3579561a (patch) | |
tree | 8400d14df4d65965f5dd3bb1e647a102d48c0041 /net/ipv4/ipmr.c | |
parent | 5fe65375e3d45b9db11783eea067dfe404752d2f (diff) | |
download | linux-b4c1d4d9734cda4394da5b59ebf7d9ca3579561a.tar.gz linux-b4c1d4d9734cda4394da5b59ebf7d9ca3579561a.tar.bz2 linux-b4c1d4d9734cda4394da5b59ebf7d9ca3579561a.zip |
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 'net/ipv4/ipmr.c')
-rw-r--r-- | net/ipv4/ipmr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index 0063a237253b..9d6f59531b3a 100644 --- a/net/ipv4/ipmr.c +++ b/net/ipv4/ipmr.c @@ -253,7 +253,7 @@ static int __net_init ipmr_rules_init(struct net *net) goto err1; } - err = fib_default_rule_add(ops, 0x7fff, RT_TABLE_DEFAULT, 0); + err = fib_default_rule_add(ops, 0x7fff, RT_TABLE_DEFAULT); if (err < 0) goto err2; |