staging: iio: adc: Remove useless cast on void pointer
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Thu, 30 Oct 2014 11:32:25 +0000 (17:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 20:05:47 +0000 (13:05 -0700)
commit31f8f066f5bc8dc5ce1efbbdfddec401ed790a2b
tree733ec178458479a8ca2c964fcc666ed8b9a8095d
parentedb3cc10e03874067c7e86107462a89b54bfdfc9
staging: iio: adc: 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
)

Build tested it.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/adc/ad7606_spi.c
drivers/staging/iio/adc/lpc32xx_adc.c
drivers/staging/iio/adc/spear_adc.c