diff options
author | Alison Schofield <amsfield22@gmail.com> | 2016-02-13 06:52:11 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-15 00:31:44 (GMT) |
commit | 6bcc1e1e703c2d734eec76bd104afc717a290205 (patch) | |
tree | b922c5ad01c9ea66f3d29dbe7c9a412e68772dff /drivers | |
parent | 59b97b365e17c0d3b13187874e5b5aededc0ae4a (diff) | |
download | linux-6bcc1e1e703c2d734eec76bd104afc717a290205.tar.xz |
staging: wilc1000: linux_mon: remove cast on void pointer
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/wilc1000/linux_mon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/linux_mon.c b/drivers/staging/wilc1000/linux_mon.c index e9bb0ec..ba702b2 100644 --- a/drivers/staging/wilc1000/linux_mon.c +++ b/drivers/staging/wilc1000/linux_mon.c @@ -137,7 +137,7 @@ struct tx_complete_mon_data { 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) { |