diff options
author | simran singhal <singhalsimran0@gmail.com> | 2017-04-01 17:11:53 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-04-02 11:48:50 +0300 |
commit | 4d925083e8f9f0c619fe212cfd0729c3dc1442b2 (patch) | |
tree | ee49c3cf53aa275170e0fd19de92c9035cfdc304 | |
parent | 6c6c0987f94f9f5539d0f97e588383b0c5c6f458 (diff) | |
download | linux-4d925083e8f9f0c619fe212cfd0729c3dc1442b2.tar.xz |
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>
-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; } |