staging: wilc1000: host_interface: remove cast on void pointers
authorAlison Schofield <amsfield22@gmail.com>
Sat, 13 Feb 2016 06:51:04 +0000 (22:51 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:31:44 +0000 (16:31 -0800)
commit59b97b365e17c0d3b13187874e5b5aededc0ae4a
treec84e0cb53a482c1ba4ab874e47d84158ee98a642
parentecdd5c745ed63676400f70636eeae132205d9757
staging: wilc1000: host_interface: remove cast on void pointers

Remove cast on void pointers. 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/host_interface.c