Skip to contentSkip to conversation

ipv4: remove unused function

PATCH Applied Stephen Hemminger 2 participants 2 messages Dec 28, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipv4: remove unused function

inetpeer_invalidate_family defined but never used

---
 include/net/inetpeer.h |    1 -
 net/ipv4/inetpeer.c    |    7 -------
 2 files changed, 8 deletions(-)
include/net/inetpeer.h +0 -1
@@ -163,7 +163,6 @@ void inet_putpeer(struct inet_peer *p);
 bool inet_peer_xrlim_allow(struct inet_peer *peer, int timeout);
 
 void inetpeer_invalidate_tree(struct inet_peer_base *);
-void inetpeer_invalidate_family(int family);
 
 /*
  * temporary check to make sure we dont access rid, ip_id_count, tcp_ts,
net/ipv4/inetpeer.c +0 -7
@@ -109,13 +109,6 @@ static inline void flush_check(struct in
 	}
 }
 
-void inetpeer_invalidate_family(int family)
-{
-	atomic_t *fp = inetpeer_seq_ptr(family);
-
-	atomic_inc(fp);
-}
-
 #define PEER_MAXDEPTH 40 /* sufficient for about 2^27 nodes */
 
 /* Exported for sysctl_net_ipv4.  */