diff options
author | simran singhal <singhalsimran0@gmail.com> | 2017-04-01 16:11:53 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-04-02 10:48:50 +0200 |
commit | 4d925083e8f9f0c619fe212cfd0729c3dc1442b2 (patch) | |
tree | ee49c3cf53aa275170e0fd19de92c9035cfdc304 /drivers/iio | |
parent | iio: common: ms_sensors: Remove unnecessary cast on void pointer (diff) | |
download | linux-4d925083e8f9f0c619fe212cfd0729c3dc1442b2.tar.xz linux-4d925083e8f9f0c619fe212cfd0729c3dc1442b2.zip |
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/dac/ad5504.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/dac/ad5504.c b/drivers/iio/dac/ad5504.c index 22a027de498a..712d86b4be09 100644 --- a/drivers/iio/dac/ad5504.c +++ b/drivers/iio/dac/ad5504.c @@ -223,7 +223,7 @@ static irqreturn_t ad5504_event_handler(int irq, void *private) 0, IIO_EV_TYPE_THRESH, IIO_EV_DIR_RISING), - iio_get_time_ns((struct iio_dev *)private)); + iio_get_time_ns(private)); return IRQ_HANDLED; } |