diff options
author | Gui Jianfeng <guijianfeng@cn.fujitsu.com> | 2007-12-31 02:27:10 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:00:17 -0500 |
commit | a06b494b61de44617dd58612164bdde56fca7bfb (patch) | |
tree | ce2b9f962b70d921d193fb1d54a28dfebc03c043 /net | |
parent | f624357959001c9156ee7a475283fc6041f78e0e (diff) |
[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 <guijianfeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | 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 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, | |||
1126 | 1126 | ||
1127 | rt->u.dst.rt6_next = NULL; | 1127 | rt->u.dst.rt6_next = NULL; |
1128 | 1128 | ||
1129 | if (fn->leaf == NULL && fn->fn_flags&RTN_TL_ROOT) | ||
1130 | fn->leaf = &ip6_null_entry; | ||
1131 | |||
1132 | /* If it was last route, expunge its radix tree node */ | 1129 | /* If it was last route, expunge its radix tree node */ |
1133 | if (fn->leaf == NULL) { | 1130 | if (fn->leaf == NULL) { |
1134 | fn->fn_flags &= ~RTN_RTINFO; | 1131 | fn->fn_flags &= ~RTN_RTINFO; |