.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Driver for the VoIP USB phones with CM109 chipsets. |
---|
3 | 4 | * |
---|
4 | 5 | * 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. |
---|
9 | 6 | */ |
---|
10 | 7 | |
---|
11 | 8 | /* |
---|
.. | .. |
---|
669 | 666 | static void cm109_usb_cleanup(struct cm109_dev *dev) |
---|
670 | 667 | { |
---|
671 | 668 | 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); |
---|
678 | 671 | |
---|
679 | 672 | usb_free_urb(dev->urb_irq); /* parameter validation in core/urb */ |
---|
680 | 673 | usb_free_urb(dev->urb_ctl); /* parameter validation in core/urb */ |
---|