Remove cast on void pointer. C programming language guarantees
the conversion from void pointer to any other pointer type.
Coccinelle patch:
@r@
expression x;
void* e;
type T;
identifier f;
@@
(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)
Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
static void mgmt_tx_complete(void *priv, int status)
{
- struct tx_complete_mon_data *pv_data = (struct tx_complete_mon_data *)priv;
+ struct tx_complete_mon_data *pv_data = priv;
u8 *buf = pv_data->buff;
if (status == 1) {