mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
usb: pcwd_usb free urb cleanup
- usb_free_urb() cleanup Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
3c8961ee6d
commit
6265d62f31
@ -561,8 +561,7 @@ static struct notifier_block usb_pcwd_notifier = {
|
||||
*/
|
||||
static inline void usb_pcwd_delete (struct usb_pcwd_private *usb_pcwd)
|
||||
{
|
||||
if (usb_pcwd->intr_urb != NULL)
|
||||
usb_free_urb (usb_pcwd->intr_urb);
|
||||
usb_free_urb(usb_pcwd->intr_urb);
|
||||
if (usb_pcwd->intr_buffer != NULL)
|
||||
usb_buffer_free(usb_pcwd->udev, usb_pcwd->intr_size,
|
||||
usb_pcwd->intr_buffer, usb_pcwd->intr_dma);
|
||||
|
Loading…
Reference in New Issue
Block a user