diff options
author | Ido Schimmel <idosch@mellanox.com> | 2017-03-10 08:56:19 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-10 09:45:09 -0800 |
commit | d05f7a7dd470f71dc45c2928dbf76afe2b1c2f07 (patch) | |
tree | 81c1b8da8ec41e107a54db47a10d4fb371bfa3be /net/ipv4/fib_rules.c | |
parent | c0243892cbb0e48873d6132f673c830602808245 (diff) | |
download | linux-d05f7a7dd470f71dc45c2928dbf76afe2b1c2f07.tar.bz2 |
ipv4: fib: Remove redundant argument
We always pass the same event type to fib_notify() and
fib_rules_notify(), so we can safely drop this argument.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_rules.c')
-rw-r--r-- | net/ipv4/fib_rules.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv4/fib_rules.c b/net/ipv4/fib_rules.c index bbd57f099183..289210903d58 100644 --- a/net/ipv4/fib_rules.c +++ b/net/ipv4/fib_rules.c @@ -172,13 +172,12 @@ static int call_fib_rule_notifiers(struct net *net, return call_fib_notifiers(net, event_type, &info); } -void fib_rules_notify(struct net *net, struct notifier_block *nb, - enum fib_event_type event_type) +void fib_rules_notify(struct net *net, struct notifier_block *nb) { struct fib_notifier_info info; if (net->ipv4.fib_has_custom_rules) - call_fib_notifier(nb, net, event_type, &info); + call_fib_notifier(nb, net, FIB_EVENT_RULE_ADD, &info); } static const struct nla_policy fib4_rule_policy[FRA_MAX+1] = { |