From: Gui Jianfeng Date: Mon, 31 Dec 2007 07:27:10 +0000 (-0800) Subject: [IPV6]: Remove useless code from fib6_del_route(). X-Git-Tag: firefly_0821_release~23655^2~901 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a06b494b61de44617dd58612164bdde56fca7bfb;p=firefly-linux-kernel-4.4.55.git [IPV6]: Remove useless code from fib6_del_route(). There are useless codes in fib6_del_route(). The following patch has been tested, every thing looks fine, as usual. Signed-off-by: Gui Jianfeng Signed-off-by: David S. Miller --- diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c index df05c6f2189c..7165a5e90f45 100644 --- a/net/ipv6/ip6_fib.c +++ b/net/ipv6/ip6_fib.c @@ -1126,9 +1126,6 @@ static void fib6_del_route(struct fib6_node *fn, struct rt6_info **rtp, rt->u.dst.rt6_next = NULL; - if (fn->leaf == NULL && fn->fn_flags&RTN_TL_ROOT) - fn->leaf = &ip6_null_entry; - /* If it was last route, expunge its radix tree node */ if (fn->leaf == NULL) { fn->fn_flags &= ~RTN_RTINFO;