netdevsim: remove nsim_dellink() implementation
authorJiri Pirko <jiri@mellanox.com>
Tue, 9 Apr 2019 15:14:52 +0000 (17:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Apr 2019 18:16:59 +0000 (11:16 -0700)
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>
drivers/net/netdevsim/netdev.c

index 75a50b59cb8f2030de5d2833cc747897ee92f1dd..cc4a5b5793fa6fb0a30ef315ac76913c4a05b191 100644 (file)
@@ -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)