Skip to content

Commit 075e264

Browse files
edumazetdavem330
authored andcommitted
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: 78f2756 ("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>
1 parent a88e24f commit 075e264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/fib_frontend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,9 @@ __be32 fib_compute_spec_dst(struct sk_buff *skb)
318318
bool fib_info_nh_uses_dev(struct fib_info *fi, const struct net_device *dev)
319319
{
320320
bool dev_match = false;
321+
#ifdef CONFIG_IP_ROUTE_MULTIPATH
321322
int ret;
322323

323-
#ifdef CONFIG_IP_ROUTE_MULTIPATH
324324
for (ret = 0; ret < fi->fib_nhs; ret++) {
325325
struct fib_nh *nh = &fi->fib_nh[ret];
326326

0 commit comments

Comments
 (0)