Commit 7d1df2c9 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller

netdevsim: remove nsim_dellink() implementation

Remove nsim_dellink() implementation. The rtnetlink code sets the
dellink op to unregister_netdevice_queue(), so this is not needed.
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 310655b0
...@@ -544,18 +544,12 @@ static int nsim_newlink(struct net *src_net, struct net_device *dev, ...@@ -544,18 +544,12 @@ static int nsim_newlink(struct net *src_net, struct net_device *dev,
return register_netdevice(dev); return register_netdevice(dev);
} }
static void nsim_dellink(struct net_device *dev, struct list_head *head)
{
unregister_netdevice_queue(dev, head);
}
static struct rtnl_link_ops nsim_link_ops __read_mostly = { static struct rtnl_link_ops nsim_link_ops __read_mostly = {
.kind = DRV_NAME, .kind = DRV_NAME,
.priv_size = sizeof(struct netdevsim), .priv_size = sizeof(struct netdevsim),
.setup = nsim_setup, .setup = nsim_setup,
.validate = nsim_validate, .validate = nsim_validate,
.newlink = nsim_newlink, .newlink = nsim_newlink,
.dellink = nsim_dellink,
}; };
static int __init nsim_module_init(void) static int __init nsim_module_init(void)
......
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