hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/input/misc/cm109.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Driver for the VoIP USB phones with CM109 chipsets.
34 *
45 * Copyright (C) 2007 - 2008 Alfred E. Heggestad <aeh@db.org>
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License as
8
- * published by the Free Software Foundation, version 2.
96 */
107
118 /*
....@@ -669,12 +666,8 @@
669666 static void cm109_usb_cleanup(struct cm109_dev *dev)
670667 {
671668 kfree(dev->ctl_req);
672
- if (dev->ctl_data)
673
- usb_free_coherent(dev->udev, USB_PKT_LEN,
674
- dev->ctl_data, dev->ctl_dma);
675
- if (dev->irq_data)
676
- usb_free_coherent(dev->udev, USB_PKT_LEN,
677
- dev->irq_data, dev->irq_dma);
669
+ usb_free_coherent(dev->udev, USB_PKT_LEN, dev->ctl_data, dev->ctl_dma);
670
+ usb_free_coherent(dev->udev, USB_PKT_LEN, dev->irq_data, dev->irq_dma);
678671
679672 usb_free_urb(dev->urb_irq); /* parameter validation in core/urb */
680673 usb_free_urb(dev->urb_ctl); /* parameter validation in core/urb */