Skip to content

Commit a06b494

Browse files
guijianfengdavem330
authored andcommitted
[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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f624357 commit a06b494

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

net/ipv6/ip6_fib.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,9 +1126,6 @@ static void fib6_del_route(struct fib6_node *fn, struct rt6_info **rtp,
11261126

11271127
rt->u.dst.rt6_next = NULL;
11281128

1129-
if (fn->leaf == NULL && fn->fn_flags&RTN_TL_ROOT)
1130-
fn->leaf = &ip6_null_entry;
1131-
11321129
/* If it was last route, expunge its radix tree node */
11331130
if (fn->leaf == NULL) {
11341131
fn->fn_flags &= ~RTN_RTINFO;

0 commit comments

Comments
 (0)