staging: nvec: Remove unnecessary cast on void pointer
authorsimran singhal <singhalsimran0@gmail.com>
Sat, 4 Mar 2017 15:30:49 +0000 (21:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 16:38:55 +0000 (17:38 +0100)
commitac15649c1c9c674c595e084d7162027c7cf12338
tree99e409491969f18dbad6982d867d5af35f03b52f
parentc66de311168b679cb5d2c3d2f936f3e54730d8ae
staging: nvec: 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/nvec/nvec_kbd.c