mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-11 15:14:03 +08:00
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 <bhaktipriya96@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
56238e456c
commit
fe5e5e3a16
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user