summaryrefslogtreecommitdiff
path: root/drivers/connector/connector.c
diff options
context:
space:
mode:
authorVasily Averin <vvs@virtuozzo.com>2019-07-18 07:26:46 +0300
committerDavid S. Miller <davem@davemloft.net>2019-07-21 23:31:14 +0300
commit903e9d1bffb557220af276eda97b9d6b103ec9e0 (patch)
tree801e52fcd2d9123e4c5a55caa6f77cab3172e71c /drivers/connector/connector.c
parent93428c582604f5d548afa885e72acaa16f03cc8d (diff)
downloadlinux-903e9d1bffb557220af276eda97b9d6b103ec9e0.tar.xz
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>
Diffstat (limited to 'drivers/connector/connector.c')
-rw-r--r--drivers/connector/connector.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/connector/connector.c b/drivers/connector/connector.c
index 23553ed6b548..2d22d6bf52f2 100644
--- a/drivers/connector/connector.c
+++ b/drivers/connector/connector.c
@@ -248,16 +248,12 @@ static int __maybe_unused cn_proc_show(struct seq_file *m, void *v)
return 0;
}
-static struct cn_dev cdev = {
- .input = cn_rx_skb,
-};
-
static int cn_init(void)
{
struct cn_dev *dev = &cdev;
struct netlink_kernel_cfg cfg = {
.groups = CN_NETLINK_USERS + 0xf,
- .input = dev->input,
+ .input = cn_rx_skb,
};
dev->nls = netlink_kernel_create(&init_net, NETLINK_CONNECTOR, &cfg);