]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitabb70cc3519dd3d6a4f8003172ec09bd3226df1b
tree33e6a5c0b00e5fc083f5c934fcf65877e51549c1
parent0745c5ee41ea6b3b676094ea7fd935f791e6e3b4
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