aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r--net/ipv6/route.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index dbdae143ef5f..c4e890abb2d4 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -2522,11 +2522,10 @@ int __init ip6_route_init(void)
2522 if (ret) 2522 if (ret)
2523 goto out_fib6_init; 2523 goto out_fib6_init;
2524 2524
2525#ifdef CONFIG_XFRM
2526 ret = xfrm6_init(); 2525 ret = xfrm6_init();
2527 if (ret) 2526 if (ret)
2528 goto out_proc_init; 2527 goto out_proc_init;
2529#endif 2528
2530#ifdef CONFIG_IPV6_MULTIPLE_TABLES 2529#ifdef CONFIG_IPV6_MULTIPLE_TABLES
2531 ret = fib6_rules_init(); 2530 ret = fib6_rules_init();
2532 if (ret) 2531 if (ret)
@@ -2547,9 +2546,7 @@ fib6_rules_init:
2547 fib6_rules_cleanup(); 2546 fib6_rules_cleanup();
2548xfrm6_init: 2547xfrm6_init:
2549#endif 2548#endif
2550#ifdef CONFIG_XFRM
2551 xfrm6_fini(); 2549 xfrm6_fini();
2552#endif
2553out_proc_init: 2550out_proc_init:
2554 ipv6_route_proc_fini(&init_net); 2551 ipv6_route_proc_fini(&init_net);
2555out_fib6_init: 2552out_fib6_init:
@@ -2566,9 +2563,7 @@ void ip6_route_cleanup(void)
2566 fib6_rules_cleanup(); 2563 fib6_rules_cleanup();
2567#endif 2564#endif
2568 ipv6_route_proc_fini(&init_net); 2565 ipv6_route_proc_fini(&init_net);
2569#ifdef CONFIG_XFRM
2570 xfrm6_fini(); 2566 xfrm6_fini();
2571#endif
2572 rt6_ifdown(NULL); 2567 rt6_ifdown(NULL);
2573 fib6_gc_cleanup(); 2568 fib6_gc_cleanup();
2574 kmem_cache_destroy(ip6_dst_ops.kmem_cachep); 2569 kmem_cache_destroy(ip6_dst_ops.kmem_cachep);