summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorsimran singhal <singhalsimran0@gmail.com>2017-04-01 17:14:15 +0300
committerJonathan Cameron <jic23@kernel.org>2017-04-02 11:50:32 +0300
commit7ae6df68d68ed1d68d6bac11edc332da67108d8f (patch)
tree4ab4112f9cfcb3ed5ca47804918dcf0ea3110d51 /drivers/iio
parent4d925083e8f9f0c619fe212cfd0729c3dc1442b2 (diff)
downloadlinux-7ae6df68d68ed1d68d6bac11edc332da67108d8f.tar.xz
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 <singhalsimran0@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/humidity/hts221_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/humidity/hts221_buffer.c b/drivers/iio/humidity/hts221_buffer.c
index 72ddcdac21a2..7d19a3da7ab7 100644
--- a/drivers/iio/humidity/hts221_buffer.c
+++ b/drivers/iio/humidity/hts221_buffer.c
@@ -41,7 +41,7 @@ static const struct iio_trigger_ops hts221_trigger_ops = {
static irqreturn_t hts221_trigger_handler_thread(int irq, void *private)
{
- struct hts221_hw *hw = (struct hts221_hw *)private;
+ struct hts221_hw *hw = private;
u8 status;
int err;