staging: vt6656: s_nsInterruptUsbIoCompleteRead remove usb_fill_bulk_urb
authorMalcolm Priestley <tvboxspy@gmail.com>
Mon, 17 Feb 2014 21:18:40 +0000 (21:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 19:01:01 +0000 (11:01 -0800)
No need to fill urb in again, just resubmit it.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/usbpipe.c

index d18cb2f..1ab1bbc 100644 (file)
@@ -404,14 +404,6 @@ static void s_nsInterruptUsbIoCompleteRead(struct urb *urb)
     }
 
     if (pDevice->fKillEventPollingThread != true) {
-       usb_fill_bulk_urb(pDevice->pInterruptURB,
-                     pDevice->usb,
-                     usb_rcvbulkpipe(pDevice->usb, 1),
-                    (void *) pDevice->intBuf.pDataBuf,
-                    MAX_INTERRUPT_SIZE,
-                    s_nsInterruptUsbIoCompleteRead,
-                    pDevice);
-
        ntStatus = usb_submit_urb(pDevice->pInterruptURB, GFP_ATOMIC);
        if (ntStatus) {
                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO