usb: ttusb_dec 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
4064fe43e8
commit
5d02d027ac
|
@ -1135,8 +1135,7 @@ static void ttusb_dec_free_iso_urbs(struct ttusb_dec *dec)
|
|||
dprintk("%s\n", __FUNCTION__);
|
||||
|
||||
for (i = 0; i < ISO_BUF_COUNT; i++)
|
||||
if (dec->iso_urb[i])
|
||||
usb_free_urb(dec->iso_urb[i]);
|
||||
usb_free_urb(dec->iso_urb[i]);
|
||||
|
||||
pci_free_consistent(NULL,
|
||||
ISO_FRAME_SIZE * (FRAMES_PER_ISO_BUF *
|
||||
|
|
Loading…
Reference in New Issue