connector: remove redundant input callback from cn_dev

A small cleanup: this callback is never used.
Originally fixed by Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
for OpenVZ7 bug OVZ-6877

cc: stanislav.kinsburskiy@gmail.com
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Vasily Averin 2019-07-18 07:26:46 +03:00 committed by David S. Miller
parent 93428c5826
commit 903e9d1bff
2 changed files with 1 additions and 6 deletions

View File

@ -248,16 +248,12 @@ static int __maybe_unused cn_proc_show(struct seq_file *m, void *v)
return 0; return 0;
} }
static struct cn_dev cdev = {
.input = cn_rx_skb,
};
static int cn_init(void) static int cn_init(void)
{ {
struct cn_dev *dev = &cdev; struct cn_dev *dev = &cdev;
struct netlink_kernel_cfg cfg = { struct netlink_kernel_cfg cfg = {
.groups = CN_NETLINK_USERS + 0xf, .groups = CN_NETLINK_USERS + 0xf,
.input = dev->input, .input = cn_rx_skb,
}; };
dev->nls = netlink_kernel_create(&init_net, NETLINK_CONNECTOR, &cfg); dev->nls = netlink_kernel_create(&init_net, NETLINK_CONNECTOR, &cfg);

View File

@ -50,7 +50,6 @@ struct cn_dev {
u32 seq, groups; u32 seq, groups;
struct sock *nls; struct sock *nls;
void (*input) (struct sk_buff *skb);
struct cn_queue_dev *cbdev; struct cn_queue_dev *cbdev;
}; };