提交 075e264f 编写于 作者: E Eric Dumazet 提交者: David S. Miller

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: 78f2756c ("net/ipv4: Move device validation to helper")
Signed-off-by: NEric Dumazet <edumazet@google.com>
Cc: David Ahern <dsahern@gmail.com>
Reviewed-by: NDavid Ahern <dsahern@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a88e24f2
...@@ -318,9 +318,9 @@ __be32 fib_compute_spec_dst(struct sk_buff *skb) ...@@ -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 fib_info_nh_uses_dev(struct fib_info *fi, const struct net_device *dev)
{ {
bool dev_match = false; bool dev_match = false;
#ifdef CONFIG_IP_ROUTE_MULTIPATH
int ret; int ret;
#ifdef CONFIG_IP_ROUTE_MULTIPATH
for (ret = 0; ret < fi->fib_nhs; ret++) { for (ret = 0; ret < fi->fib_nhs; ret++) {
struct fib_nh *nh = &fi->fib_nh[ret]; struct fib_nh *nh = &fi->fib_nh[ret];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册