staging: wilc1000: linux_mon: remove cast on void pointer
authorAlison Schofield <amsfield22@gmail.com>
Sat, 13 Feb 2016 06:52:11 +0000 (22:52 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:31:44 +0000 (16:31 -0800)
commit6bcc1e1e703c2d734eec76bd104afc717a290205
treeb922c5ad01c9ea66f3d29dbe7c9a412e68772dff
parent59b97b365e17c0d3b13187874e5b5aededc0ae4a
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>
drivers/staging/wilc1000/linux_mon.c