From: Bhaktipriya Shridhar Date: Sun, 21 Feb 2016 07:26:16 +0000 (+0530) Subject: staging: rtl8712: Remove unnecessary cast on void pointer X-Git-Tag: Ubuntu-4.10.0-19.21~3743^2~180 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=fe5e5e3a1627f2588fbdc3b554a54febf44395f6;p=mirror_ubuntu-artful-kernel.git staging: rtl8712: Remove unnecessary cast on void pointer The following Coccinelle script was used to detect this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T*)x)->f | - (T*) e ) Signed-off-by: Bhaktipriya Shridhar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8712/usb_ops_linux.c b/drivers/staging/rtl8712/usb_ops_linux.c index c2ac5818a18d..454cdf6c7fa1 100644 --- a/drivers/staging/rtl8712/usb_ops_linux.c +++ b/drivers/staging/rtl8712/usb_ops_linux.c @@ -334,7 +334,7 @@ void r8712_usb_read_port_cancel(struct _adapter *padapter) void r8712_xmit_bh(void *priv) { int ret = false; - struct _adapter *padapter = (struct _adapter *)priv; + struct _adapter *padapter = priv; struct xmit_priv *pxmitpriv = &padapter->xmitpriv; if (padapter->bDriverStopped ||