staging: vt6656: usb_fill_bulk_urb get rid of void* cast.
authorMalcolm Priestley <tvboxspy@gmail.com>
Tue, 25 Feb 2014 20:51:44 +0000 (20:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2014 21:04:36 +0000 (13:04 -0800)
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/usbpipe.c

index a93d0ff46c01dd83970140fec981abf0f0c017c3..706c1633fef549792bd93d7384f6bf3efab38050 100644 (file)
@@ -556,14 +556,13 @@ int PIPEnsSendBulkOut(struct vnt_private *pDevice,
         pUrb = pContext->pUrb;
         pDevice->ulBulkOutPosted++;
 //        pDevice->pPendingBulkOutContext = pContext;
-        usb_fill_bulk_urb(
-                   pUrb,
-                       pDevice->usb,
-                   usb_sndbulkpipe(pDevice->usb, 3),
-                   (void *) &(pContext->Data[0]),
-                       pContext->uBufLen,
-                       s_nsBulkOutIoCompleteWrite,
-                       pContext);
+       usb_fill_bulk_urb(pUrb,
+                       pDevice->usb,
+                       usb_sndbulkpipe(pDevice->usb, 3),
+                       pContext->Data,
+                       pContext->uBufLen,
+                       s_nsBulkOutIoCompleteWrite,
+                       pContext);
 
        status = usb_submit_urb(pUrb, GFP_ATOMIC);
        if (status != 0)