diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-11 13:28:06 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-11 13:28:06 +0100 |
commit | 6667846c38afee8570a93921d3de24ab525246ee (patch) | |
tree | d4c0f6e56667366a191f961c8b9af2c264354795 | |
parent | e5ba407f8f08c812d9bf5088e51c54644839c85b (diff) |
device: dellink is already implictly unregister_netdevice_queue
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/device.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/device.c b/src/device.c index af53393..785d57d 100644 --- a/src/device.c +++ b/src/device.c @@ -253,13 +253,10 @@ static void destruct(struct net_device *dev) free_netdev(dev); } -enum { - WG_NETDEV_FEATURES = NETIF_F_HW_CSUM | NETIF_F_RXCSUM | NETIF_F_SG | NETIF_F_GSO | NETIF_F_GSO_SOFTWARE | NETIF_F_HIGHDMA -}; - static void setup(struct net_device *dev) { struct wireguard_device *wg = netdev_priv(dev); + enum { WG_NETDEV_FEATURES = NETIF_F_HW_CSUM | NETIF_F_RXCSUM | NETIF_F_SG | NETIF_F_GSO | NETIF_F_GSO_SOFTWARE | NETIF_F_HIGHDMA }; dev->netdev_ops = &netdev_ops; dev->destructor = destruct; @@ -362,17 +359,11 @@ error_1: return err; } -static void dellink(struct net_device *dev, struct list_head *head) -{ - unregister_netdevice_queue(dev, head); -} - static struct rtnl_link_ops link_ops __read_mostly = { .kind = KBUILD_MODNAME, .priv_size = sizeof(struct wireguard_device), .setup = setup, .newlink = newlink, - .dellink = dellink }; int device_init(void) |