net: ipv4: netfilter: Remove unused function nf_nat_need_gre()
Subsystems (3)
PATCH 1/1 net: ipv4: netfilter: Remove unused function nf_nat_need_gre()
The function nf_nat_need_gre() on being called, simply returns back. The function doesn't have FIXME code around. Hence, nf_nat_need_gre() and its calls have been removed.
Signed-off-by simran singhal <[email protected]>
--- net/ipv4/netfilter/nf_nat_pptp.c | 2 -- net/ipv4/netfilter/nf_nat_proto_gre.c | 6 ------ 2 files changed, 8 deletions(-)
net/ipv4/netfilter/nf_nat_pptp.c +0 -2
@@ -282,8 +282,6 @@ pptp_inbound_pkt(struct sk_buff *skb,static int __init nf_nat_helper_pptp_init (void ) { -nf_nat_need_gre (); -BUG_ON (nf_nat_pptp_hook_outbound !=NULL );RCU_INIT_POINTER (nf_nat_pptp_hook_outbound, pptp_outbound_pkt);
net/ipv4/netfilter/nf_nat_proto_gre.c +0 -6
@@ -142,9 +142,3 @@ static void __exit nf_nat_proto_gre_fini(void)module_init (nf_nat_proto_gre_init);module_exit (nf_nat_proto_gre_fini); - -void nf_nat_need_gre (void ) -{ -return ; -} -EXPORT_SYMBOL_GPL (nf_nat_need_gre);
Signature · 1 line
2.7.4
Pablo Neira Ayuso
maintainerQuoted 28 lines · simran singhal
The function
nf_nat_need_gre()on being called, simply returns back. The function doesn't have FIXME code around. Hence,nf_nat_need_gre()and its calls have been removed.Signed-off-by simran singhal <[email protected]>--- net/ipv4/netfilter/nf_nat_pptp.c | 2 -- net/ipv4/netfilter/nf_nat_proto_gre.c | 6 ------ 2 files changed, 8 deletions(-)net/ipv4/netfilter/nf_nat_pptp.c +0
-2@@ -282,8 +282,6 @@ pptp_inbound_pkt(struct sk_buff *skb,static int __init nf_nat_helper_pptp_init (void ) { -nf_nat_need_gre (); -BUG_ON (nf_nat_pptp_hook_outbound !=NULL );RCU_INIT_POINTER (nf_nat_pptp_hook_outbound, pptp_outbound_pkt);net/ipv4/netfilter/nf_nat_proto_gre.c +0
-0
net/ipv4/netfilter/nf_nat_proto_gre.c static void __exit nf_nat_proto_gre_fini(void) · line 150
Quoted 9 lines
net/ipv4/netfilter/nf_nat_proto_gre.c +0
-6@@ -142,9 +142,3 @@ static void __exit nf_nat_proto_gre_fini(void)module_init (nf_nat_proto_gre_init);module_exit (nf_nat_proto_gre_fini); - -void nf_nat_need_gre (void ) -{ -return ; -} -EXPORT_SYMBOL_GPL (nf_nat_need_gre);
There is a good reason why we have this :)
By digging out and doing a bit of software archeology work via the 'git annotate' you know this triggers an explicit module dependency.