aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink/af_netlink.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2023-03-08 15:20:06 +0100
committerJakub Kicinski <kuba@kernel.org>2023-03-09 23:11:09 -0800
commit6978052448f9eb19f7b03243ac0416104e5ee50d (patch)
tree0cfe04fad5c5910e5110b790d2ce01c14389d1ab /net/netlink/af_netlink.c
parentefb5b62d72719fd1df1f927542c58d1e21d69e19 (diff)
downloadlinux-6978052448f9eb19f7b03243ac0416104e5ee50d.tar.gz
netlink: remove unused 'compare' function
No users in the tree. Tested with allmodconfig build. Signed-off-by: Florian Westphal <fw@strlen.de> Link: https://lore.kernel.org/r/20230308142006.20879-1-fw@strlen.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r--net/netlink/af_netlink.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index c6427765975318..877f1da1a8aca0 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -2097,8 +2097,6 @@ __netlink_kernel_create(struct net *net, int unit, struct module *module,
nl_table[unit].bind = cfg->bind;
nl_table[unit].unbind = cfg->unbind;
nl_table[unit].flags = cfg->flags;
- if (cfg->compare)
- nl_table[unit].compare = cfg->compare;
}
nl_table[unit].registered = 1;
} else {