diff options
Diffstat (limited to 'include/net/neighbour.h')
-rw-r--r-- | include/net/neighbour.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h index a0d42a54cfb2..ebbfb509822e 100644 --- a/include/net/neighbour.h +++ b/include/net/neighbour.h | |||
@@ -213,7 +213,6 @@ extern struct neighbour *neigh_event_ns(struct neigh_table *tbl, | |||
213 | 213 | ||
214 | extern struct neigh_parms *neigh_parms_alloc(struct net_device *dev, struct neigh_table *tbl); | 214 | extern struct neigh_parms *neigh_parms_alloc(struct net_device *dev, struct neigh_table *tbl); |
215 | extern void neigh_parms_release(struct neigh_table *tbl, struct neigh_parms *parms); | 215 | extern void neigh_parms_release(struct neigh_table *tbl, struct neigh_parms *parms); |
216 | extern void neigh_parms_destroy(struct neigh_parms *parms); | ||
217 | extern unsigned long neigh_rand_reach_time(unsigned long base); | 216 | extern unsigned long neigh_rand_reach_time(unsigned long base); |
218 | 217 | ||
219 | extern void pneigh_enqueue(struct neigh_table *tbl, struct neigh_parms *p, | 218 | extern void pneigh_enqueue(struct neigh_table *tbl, struct neigh_parms *p, |
@@ -254,12 +253,6 @@ static inline void __neigh_parms_put(struct neigh_parms *parms) | |||
254 | atomic_dec(&parms->refcnt); | 253 | atomic_dec(&parms->refcnt); |
255 | } | 254 | } |
256 | 255 | ||
257 | static inline void neigh_parms_put(struct neigh_parms *parms) | ||
258 | { | ||
259 | if (atomic_dec_and_test(&parms->refcnt)) | ||
260 | neigh_parms_destroy(parms); | ||
261 | } | ||
262 | |||
263 | static inline struct neigh_parms *neigh_parms_clone(struct neigh_parms *parms) | 256 | static inline struct neigh_parms *neigh_parms_clone(struct neigh_parms *parms) |
264 | { | 257 | { |
265 | atomic_inc(&parms->refcnt); | 258 | atomic_inc(&parms->refcnt); |