diff options
author | Eric Dumazet | 2018-09-21 10:58:07 -0700 |
---|---|---|
committer | David S. Miller | 2018-09-21 19:41:30 -0700 |
commit | 075e264fa33e7838680802ba514a8d67433e48d1 (patch) | |
tree | 05cf5a03941b700e316a4e0eb2aa87ccfe84239a /net/ipv4 | |
parent | a88e24f270ebed5499f10615e64c11ccd2210517 (diff) |
net/ipv4: avoid compile error in fib_info_nh_uses_dev
net/ipv4/fib_frontend.c: In function 'fib_info_nh_uses_dev':
net/ipv4/fib_frontend.c:322:6: error: unused variable 'ret' [-Werror=unused-variable]
cc1: all warnings being treated as errors
Fixes: 78f2756c5fc0 ("net/ipv4: Move device validation to helper")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: David Ahern <dsahern@gmail.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/fib_frontend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index 222b968de94c..30e2bcc3ef2a 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c @@ -318,9 +318,9 @@ __be32 fib_compute_spec_dst(struct sk_buff *skb) bool fib_info_nh_uses_dev(struct fib_info *fi, const struct net_device *dev) { bool dev_match = false; +#ifdef CONFIG_IP_ROUTE_MULTIPATH int ret; -#ifdef CONFIG_IP_ROUTE_MULTIPATH for (ret = 0; ret < fi->fib_nhs; ret++) { struct fib_nh *nh = &fi->fib_nh[ret]; |