OSDN Git Service

staging: rtl8712: Remove unnecessary cast on void pointer
authorsimran singhal <singhalsimran0@gmail.com>
Sat, 4 Mar 2017 15:30:53 +0000 (21:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 16:37:21 +0000 (17:37 +0100)
commitc66de311168b679cb5d2c3d2f936f3e54730d8ae
tree33e6a5c0b00e5fc083f5c934fcf65877e51549c1
parent4c3ff837e5fbb325a915b50e487dc91a6546b146
staging: rtl8712: Remove unnecessary cast on void pointer

The following Coccinelle script was used to detect this:
@r@
expression x;
void* e;
type T;
identifier f;
@@
(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T*)x)->f
|
- (T*)
  e
)

Signed-off-by: simran singhal <singhalsimran0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_recv.c