[IPV6]: Clean up BACKTRACK().
authorVille Nuorvala <vnuorval@tcs.hut.fi>
Tue, 17 Oct 2006 05:11:11 +0000 (22:11 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 19 Oct 2006 02:55:28 +0000 (19:55 -0700)
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>
net/ipv6/route.c

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