Browse Source

[IPV6]: Clean up BACKTRACK().

The fn check is unnecessary as fn can never be NULL in BACKTRACK().

Signed-off-by: Ville Nuorvala <vnuorval@tcs.hut.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Ville Nuorvala 18 năm trước cách đây
mục cha
commit
e0eda7bbaa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      net/ipv6/route.c

+ 1 - 1
net/ipv6/route.c

@@ -484,7 +484,7 @@ int rt6_route_rcv(struct net_device *dev, u8 *opt, int len,
 do { \
 do { \
 	if (rt == &ip6_null_entry) { \
 	if (rt == &ip6_null_entry) { \
 		struct fib6_node *pn; \
 		struct fib6_node *pn; \
-		while (fn) { \
+		while (1) { \
 			if (fn->fn_flags & RTN_TL_ROOT) \
 			if (fn->fn_flags & RTN_TL_ROOT) \
 				goto out; \
 				goto out; \
 			pn = fn->parent; \
 			pn = fn->parent; \