Skip to content

Commit

Permalink
ipv4: remove unused function
Browse files Browse the repository at this point in the history
inetpeer_invalidate_family defined but never used

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Dec 28, 2013
1 parent 7195cf7 commit 068a6e1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion include/net/inetpeer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 0 additions & 7 deletions net/ipv4/inetpeer.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,6 @@ static inline void flush_check(struct inet_peer_base *base, int family)
}
}

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. */
Expand Down

0 comments on commit 068a6e1

Please sign in to comment.