* [PATCH] remove useless code from fib6_del_route
@ 2007-12-28 7:12 Gui Jianfeng
2007-12-31 7:27 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Gui Jianfeng @ 2007-12-28 7:12 UTC (permalink / raw)
To: netdev; +Cc: David Miller
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<guijianfeng@cn.fujitsu.com>
---
net/ipv6/ip6_fib.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c
index 946cf38..5f96eb1 100644
--- a/net/ipv6/ip6_fib.c
+++ b/net/ipv6/ip6_fib.c
@@ -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;
--
Regards
Gui Jianfeng
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] remove useless code from fib6_del_route
2007-12-28 7:12 [PATCH] remove useless code from fib6_del_route Gui Jianfeng
@ 2007-12-31 7:27 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-12-31 7:27 UTC (permalink / raw)
To: guijianfeng; +Cc: netdev
From: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
Date: Fri, 28 Dec 2007 15:12:28 +0800
> 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<guijianfeng@cn.fujitsu.com>
Patch applied to net-2.6.25, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-31 7:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-28 7:12 [PATCH] remove useless code from fib6_del_route Gui Jianfeng
2007-12-31 7:27 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).