forked from luck/tmp_suning_uos_patched
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:
parent
93428c5826
commit
903e9d1bff
|
@ -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);
|
||||
|
|
|
@ -50,7 +50,6 @@ struct cn_dev {
|
|||
|
||||
u32 seq, groups;
|
||||
struct sock *nls;
|
||||
void (*input) (struct sk_buff *skb);
|
||||
|
||||
struct cn_queue_dev *cbdev;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user