[CRIU] [PATCH cr 10/10] netfilter: remove unused code

Andrey Vagin avagin at openvz.org
Thu Sep 13 09:10:30 EDT 2012


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 include/netfilter.h |    3 ---
 netfilter.c         |    6 ------
 2 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/include/netfilter.h b/include/netfilter.h
index ee5d622..e54d2d8 100644
--- a/include/netfilter.h
+++ b/include/netfilter.h
@@ -5,8 +5,5 @@ struct inet_sk_desc;
 int nf_lock_connection(struct inet_sk_desc *);
 int nf_unlock_connection(struct inet_sk_desc *);
 
-struct inet_sk_info;
-int nf_unlock_connection_info(struct inet_sk_info *);
-
 int nf_connection_switch_raw(u32 *src_addr, u16 src_port, u32 *dst_addr, u16 dst_port, int lock);
 #endif
diff --git a/netfilter.c b/netfilter.c
index 72d5e91..8c1f23c 100644
--- a/netfilter.c
+++ b/netfilter.c
@@ -69,9 +69,3 @@ int nf_unlock_connection(struct inet_sk_desc *sk)
 {
 	return nf_connection_switch(sk, 0);
 }
-
-int nf_unlock_connection_info(struct inet_sk_info *si)
-{
-	return nf_connection_switch_raw(si->ie->src_addr, si->ie->src_port,
-			si->ie->dst_addr, si->ie->dst_port, 0);
-}
-- 
1.7.1



More information about the CRIU mailing list