staging: vt6656: Remove pointer cast to urb->context.
authorMalcolm Priestley <tvboxspy@gmail.com>
Tue, 25 Feb 2014 20:51:51 +0000 (20:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2014 21:04:36 +0000 (13:04 -0800)
Remove unnecessary cast to void * urb->context

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

index 1477defcda643e40b4cd168de625d7ebdc454ba7..54c68a5119324d1730d038ec3044956223d62cdc 100644 (file)
@@ -347,7 +347,7 @@ int PIPEnsInterruptRead(struct vnt_private *priv)
 
 static void s_nsInterruptUsbIoCompleteRead(struct urb *urb)
 {
-       struct vnt_private *priv = (struct vnt_private *)urb->context;
+       struct vnt_private *priv = urb->context;
        int status;
 
        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
@@ -465,7 +465,7 @@ int PIPEnsBulkInUsbRead(struct vnt_private *priv, struct vnt_rcb *rcb)
 
 static void s_nsBulkInUsbIoCompleteRead(struct urb *urb)
 {
-       struct vnt_rcb *rcb = (struct vnt_rcb *)urb->context;
+       struct vnt_rcb *rcb = urb->context;
        struct vnt_private *priv = rcb->pDevice;
        int re_alloc_skb = false;
 
@@ -592,8 +592,7 @@ int PIPEnsSendBulkOut(struct vnt_private *priv,
 
 static void s_nsBulkOutIoCompleteWrite(struct urb *urb)
 {
-       struct vnt_usb_send_context *context =
-                       (struct vnt_usb_send_context *)urb->context;
+       struct vnt_usb_send_context *context = urb->context;
        struct vnt_private *priv = context->pDevice;
        u8 context_type = context->type;
        unsigned long buf_len = context->uBufLen;