usb: ati_remote2 free urb cleanup
Hello, - 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
459f836a61
commit
2381526a79
1 changed files with 1 additions and 2 deletions
|
@ -372,8 +372,7 @@ static void ati_remote2_urb_cleanup(struct ati_remote2 *ar2)
|
|||
int i;
|
||||
|
||||
for (i = 0; i < 2; i++) {
|
||||
if (ar2->urb[i])
|
||||
usb_free_urb(ar2->urb[i]);
|
||||
usb_free_urb(ar2->urb[i]);
|
||||
|
||||
if (ar2->buf[i])
|
||||
usb_buffer_free(ar2->udev, 4, ar2->buf[i], ar2->buf_dma[i]);
|
||||
|
|
Reference in a new issue