diff options
author | Emil Renner Berthing <kernel@esmil.dk> | 2021-01-23 20:32:20 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-27 05:04:26 +0300 |
commit | 90a586b8d741b4b8a1368f6a2ccf858e1a0fe23c (patch) | |
tree | 6d7fb6105f9d7561c8b88899435ad287e2d8100a | |
parent | 3e4715ec58ff48015270971f33eafc956cf5ca3f (diff) | |
download | linux-90a586b8d741b4b8a1368f6a2ccf858e1a0fe23c.tar.xz |
net: usbnet: initialize tasklet using tasklet_init
Initialize tasklet using tasklet_init() rather than open-coding it.
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | drivers/net/usb/usbnet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index 305c5f7b9a9b..0fa31f1e9f7e 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c @@ -1673,8 +1673,7 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod) skb_queue_head_init (&dev->txq); skb_queue_head_init (&dev->done); skb_queue_head_init(&dev->rxq_pause); - dev->bh.func = usbnet_bh_tasklet; - dev->bh.data = (unsigned long)&dev->delay; + tasklet_init(&dev->bh, usbnet_bh_tasklet, (unsigned long)&dev->delay); INIT_WORK (&dev->kevent, usbnet_deferred_kevent); init_usb_anchor(&dev->deferred); timer_setup(&dev->delay, usbnet_bh, 0); |