mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 09:56:00 +00:00
staging: rtl8712: Remove 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
1f4e270652
commit
56238e456c
@ -317,7 +317,7 @@ int r8712_cmd_thread(void *context)
|
||||
unsigned int cmdsz, wr_sz, *pcmdbuf;
|
||||
struct tx_desc *pdesc;
|
||||
void (*pcmd_callback)(struct _adapter *dev, struct cmd_obj *pcmd);
|
||||
struct _adapter *padapter = (struct _adapter *)context;
|
||||
struct _adapter *padapter = context;
|
||||
struct cmd_priv *pcmdpriv = &(padapter->cmdpriv);
|
||||
|
||||
allow_signal(SIGTERM);
|
||||
|
Loading…
Reference in New Issue
Block a user