staging: wilc1000: wilc_wfi_cfgoperations: remove cast on void pointers
authorAlison Schofield <amsfield22@gmail.com>
Sat, 13 Feb 2016 06:54:08 +0000 (22:54 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:31:44 +0000 (16:31 -0800)
commit4375cad941ee9cc8f7c2a467464cd29ec3d9abd1
tree521f9ae7b8a7f14b11be8bb599c0a760a7620433
parentd5c89442d431afa2d5c35a5141b259c4ff5d8c03
staging: wilc1000: wilc_wfi_cfgoperations: 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/wilc_wfi_cfgoperations.c