]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iio: dac: ad5504: Remove unnecessary cast on void pointer
authorsimran singhal <singhalsimran0@gmail.com>
Sat, 1 Apr 2017 14:11:53 +0000 (19:41 +0530)
committerJonathan Cameron <jic23@kernel.org>
Sun, 2 Apr 2017 08:48:50 +0000 (09:48 +0100)
commit4d925083e8f9f0c619fe212cfd0729c3dc1442b2
treeee49c3cf53aa275170e0fd19de92c9035cfdc304
parent6c6c0987f94f9f5539d0f97e588383b0c5c6f458
iio: dac: ad5504: 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/dac/ad5504.c