iio: pressure: zpa2326: Remove unnecessary cast on void pointer
authorsimran singhal <singhalsimran0@gmail.com>
Sat, 1 Apr 2017 14:18:39 +0000 (19:48 +0530)
committerJonathan Cameron <jic23@kernel.org>
Sun, 2 Apr 2017 08:52:18 +0000 (09:52 +0100)
commitaf873b0d8f586c07ec329d6d91eaa58ba5d7c662
tree892698fbaec2156e46999122d86b30b1eecfffba
parent407e0b537eadc9f5e98da74b746ce84f42b89cd7
iio: pressure: zpa2326: 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: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/zpa2326.c