diff options
author | Eric Dumazet <edumazet@google.com> | 2025-02-03 15:11:52 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-02-04 14:01:19 -0800 |
commit | a064068bb6be51ed54f435fe7314c057f9eeb020 (patch) | |
tree | c44e545bc0e06e3cd4649a0ad48d5a4c0a346715 | |
parent | 546d98393abcf2f841e61163d95ed21fde346cc1 (diff) |
neighbour: remove neigh_parms_destroy()
neigh_parms_destroy() is a simple kfree(), no need for
a forward declaration.
neigh_parms_put() can instead call kfree() directly.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250203151152.3163876-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | net/core/neighbour.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 89656d180bc6..73260ca0fc22 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -832,12 +832,10 @@ static int pneigh_ifdown_and_unlock(struct neigh_table *tbl, return -ENOENT; } -static void neigh_parms_destroy(struct neigh_parms *parms); - static inline void neigh_parms_put(struct neigh_parms *parms) { if (refcount_dec_and_test(&parms->refcnt)) - neigh_parms_destroy(parms); + kfree(parms); } /* @@ -1713,11 +1711,6 @@ void neigh_parms_release(struct neigh_table *tbl, struct neigh_parms *parms) } EXPORT_SYMBOL(neigh_parms_release); -static void neigh_parms_destroy(struct neigh_parms *parms) -{ - kfree(parms); -} - static struct lock_class_key neigh_table_proxy_queue_class; static struct neigh_table __rcu *neigh_tables[NEIGH_NR_TABLES] __read_mostly; |