Commit fa8fefaa authored by David Ahern's avatar David Ahern Committed by David S. Miller

net: ipv4: remove fib_info arg to fib_check_nh

fib_check_nh does not use the fib_info arg; remove t.
Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c7c3e591
...@@ -766,8 +766,8 @@ bool fib_metrics_match(struct fib_config *cfg, struct fib_info *fi) ...@@ -766,8 +766,8 @@ bool fib_metrics_match(struct fib_config *cfg, struct fib_info *fi)
* | * |
* |-> {local prefix} (terminal node) * |-> {local prefix} (terminal node)
*/ */
static int fib_check_nh(struct fib_config *cfg, struct fib_info *fi, static int fib_check_nh(struct fib_config *cfg, struct fib_nh *nh,
struct fib_nh *nh, struct netlink_ext_ack *extack) struct netlink_ext_ack *extack)
{ {
int err = 0; int err = 0;
struct net *net; struct net *net;
...@@ -1250,7 +1250,7 @@ struct fib_info *fib_create_info(struct fib_config *cfg, ...@@ -1250,7 +1250,7 @@ struct fib_info *fib_create_info(struct fib_config *cfg,
int linkdown = 0; int linkdown = 0;
change_nexthops(fi) { change_nexthops(fi) {
err = fib_check_nh(cfg, fi, nexthop_nh, extack); err = fib_check_nh(cfg, nexthop_nh, extack);
if (err != 0) if (err != 0)
goto failure; goto failure;
if (nexthop_nh->nh_flags & RTNH_F_LINKDOWN) if (nexthop_nh->nh_flags & RTNH_F_LINKDOWN)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment