Staging: unisys: Remove useless cast on void pointer
authorShraddha Barke <shraddha.6596@gmail.com>
Mon, 10 Aug 2015 08:00:35 +0000 (13:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 01:44:45 +0000 (18:44 -0700)
commit0df4e3e9bbf8968d5ff079b0ace3de9c0b971021
tree3b60d2c15501e0ae7ea54af04a5c935b04d67ef6
parent94858feccaada3f1810ff50dd21d33b1d4d95d56
Staging: unisys: Remove useless cast on void pointer

void pointers do not need to be cast to other pointer types.

The semantic patch used to find this:

@r@
expression x;
void* e;
type T;
identifier f;
@@
(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T *)x)->f
|
- (T *)
  e
)

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_main.c