remove useless code from fib6_del_route
Subsystems (3)
PATCH 1/1 remove useless code from fib6_del_route
Hi Dave,
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<[email protected]>
--- net/ipv6/ip6_fib.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
net/ipv6/ip6_fib.c +0 -3
@@ -1122,9 +1122,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 ;
Signature · 2 lines
Regards Gui Jianfeng
David Miller
maintainerFrom: Gui Jianfeng <[email protected]>
Date: Fri, 28 Dec 2007 15:12:28 +0800
Quoted 4 lines
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<[email protected]>
Patch applied to net-2.6.25, thanks.