diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-04-09 17:14:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-09 11:16:59 -0700 |
commit | 7d1df2c978dc472bc514f92c9ecb1db33503b298 (patch) | |
tree | 39a05979df0befe7de45e62a961c3be0879c2e6a /drivers | |
parent | 310655b07ae8ef0b8fdb641b610ded2052215664 (diff) |
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: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/netdevsim/netdev.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/netdevsim/netdev.c b/drivers/net/netdevsim/netdev.c index 75a50b59cb8f..cc4a5b5793fa 100644 --- a/drivers/net/netdevsim/netdev.c +++ b/drivers/net/netdevsim/netdev.c @@ -544,18 +544,12 @@ static int nsim_newlink(struct net *src_net, struct net_device *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 = { .kind = DRV_NAME, .priv_size = sizeof(struct netdevsim), .setup = nsim_setup, .validate = nsim_validate, .newlink = nsim_newlink, - .dellink = nsim_dellink, }; static int __init nsim_module_init(void) |