Commit 69780524 authored by Florian Westphal's avatar Florian Westphal Committed by Jakub Kicinski

netlink: remove unused 'compare' function

No users in the tree.  Tested with allmodconfig build.
Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Link: https://lore.kernel.org/r/20230308142006.20879-1-fw@strlen.deSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent efb5b62d
...@@ -50,7 +50,6 @@ struct netlink_kernel_cfg { ...@@ -50,7 +50,6 @@ struct netlink_kernel_cfg {
struct mutex *cb_mutex; struct mutex *cb_mutex;
int (*bind)(struct net *net, int group); int (*bind)(struct net *net, int group);
void (*unbind)(struct net *net, int group); void (*unbind)(struct net *net, int group);
bool (*compare)(struct net *net, struct sock *sk);
}; };
struct sock *__netlink_kernel_create(struct net *net, int unit, struct sock *__netlink_kernel_create(struct net *net, int unit,
......
...@@ -2097,8 +2097,6 @@ __netlink_kernel_create(struct net *net, int unit, struct module *module, ...@@ -2097,8 +2097,6 @@ __netlink_kernel_create(struct net *net, int unit, struct module *module,
nl_table[unit].bind = cfg->bind; nl_table[unit].bind = cfg->bind;
nl_table[unit].unbind = cfg->unbind; nl_table[unit].unbind = cfg->unbind;
nl_table[unit].flags = cfg->flags; nl_table[unit].flags = cfg->flags;
if (cfg->compare)
nl_table[unit].compare = cfg->compare;
} }
nl_table[unit].registered = 1; nl_table[unit].registered = 1;
} else { } else {
......
...@@ -64,7 +64,6 @@ struct netlink_table { ...@@ -64,7 +64,6 @@ struct netlink_table {
struct module *module; struct module *module;
int (*bind)(struct net *net, int group); int (*bind)(struct net *net, int group);
void (*unbind)(struct net *net, int group); void (*unbind)(struct net *net, int group);
bool (*compare)(struct net *net, struct sock *sock);
int registered; int registered;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment