iio: humidity: hts221: Remove unnecessary cast on void pointer
authorsimran singhal <[email protected]>
Sat, 1 Apr 2017 14:14:15 +0000 (19:44 +0530)
committerJonathan Cameron <[email protected]>
Sun, 2 Apr 2017 08:50:32 +0000 (09:50 +0100)
commit7ae6df68d68ed1d68d6bac11edc332da67108d8f
tree4ab4112f9cfcb3ed5ca47804918dcf0ea3110d51
parent4d925083e8f9f0c619fe212cfd0729c3dc1442b2
iio: humidity: hts221: 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 <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
drivers/iio/humidity/hts221_buffer.c