We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent deae576 commit 08a6caaCopy full SHA for 08a6caa
drivers/input/misc/cm109.c
@@ -663,12 +663,8 @@ static const struct usb_device_id cm109_usb_table[] = {
663
static void cm109_usb_cleanup(struct cm109_dev *dev)
664
{
665
kfree(dev->ctl_req);
666
- if (dev->ctl_data)
667
- usb_free_coherent(dev->udev, USB_PKT_LEN,
668
- dev->ctl_data, dev->ctl_dma);
669
- if (dev->irq_data)
670
671
- dev->irq_data, dev->irq_dma);
+ usb_free_coherent(dev->udev, USB_PKT_LEN, dev->ctl_data, dev->ctl_dma);
+ usb_free_coherent(dev->udev, USB_PKT_LEN, dev->irq_data, dev->irq_dma);
672
673
usb_free_urb(dev->urb_irq); /* parameter validation in core/urb */
674
usb_free_urb(dev->urb_ctl); /* parameter validation in core/urb */
0 commit comments