Patchwork [5/7] xfrm: remove unused xfrm4_policy_fini()

login
register
mail settings
Submitter Steffen Klassert
Date Feb. 14, 2013, 11:47 a.m.
Message ID <1360842447-3344-6-git-send-email-steffen.klassert@secunet.com>
Download mbox | patch
Permalink /patch/220421/
State Accepted
Delegated to: David Miller
Headers show

Comments

Steffen Klassert - Feb. 14, 2013, 11:47 a.m.
From: Michal Kubecek <mkubecek@suse.cz>

Function xfrm4_policy_fini() is unused since xfrm4_fini() was
removed in 2.6.11.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
---
 net/ipv4/xfrm4_policy.c |    9 ---------
 1 file changed, 9 deletions(-)

Patch

diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c
index 3be0ac2..0e28383 100644
--- a/net/ipv4/xfrm4_policy.c
+++ b/net/ipv4/xfrm4_policy.c
@@ -270,15 +270,6 @@  static void __init xfrm4_policy_init(void)
 	xfrm_policy_register_afinfo(&xfrm4_policy_afinfo);
 }
 
-static void __exit xfrm4_policy_fini(void)
-{
-#ifdef CONFIG_SYSCTL
-	if (sysctl_hdr)
-		unregister_net_sysctl_table(sysctl_hdr);
-#endif
-	xfrm_policy_unregister_afinfo(&xfrm4_policy_afinfo);
-}
-
 void __init xfrm4_init(void)
 {
 	dst_entries_init(&xfrm4_dst_ops);