projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f624357
)
[IPV6]: Remove useless code from fib6_del_route().
author
Gui Jianfeng
<guijianfeng@cn.fujitsu.com>
Mon, 31 Dec 2007 07:27:10 +0000
(23:27 -0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Jan 2008 23:00:17 +0000
(15:00 -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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/ip6_fib.c
b/net/ipv6/ip6_fib.c
index df05c6f2189cec3495322b776a0679af0cc64e88..7165a5e90f451062a052b6576c8c2a412054c1e4 100644
(file)
--- 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;