summaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-trigger.c
diff options
context:
space:
mode:
authorPeter Meerwald <pmeerw@pmeerw.net>2013-11-12 21:49:00 +0000
committerJonathan Cameron <jic23@kernel.org>2013-11-24 21:07:13 +0000
commita35e1fd26826faa5595bcb4c8ab370f331221ff7 (patch)
treec8816d48cdc1e21d048bfed7de2bf351fda5e15c /drivers/iio/industrialio-trigger.c
parent17666ef3c765afa9f70de1f3c733a2f7ea2f6ca3 (diff)
iio: Remove redundant check that new trigger is different from old
same check is performed a new lines above Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/industrialio-trigger.c')
-rw-r--r--drivers/iio/industrialio-trigger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/industrialio-trigger.c b/drivers/iio/industrialio-trigger.c
index b1b25294e35..7ba2f002ffc 100644
--- a/drivers/iio/industrialio-trigger.c
+++ b/drivers/iio/industrialio-trigger.c
@@ -356,7 +356,7 @@ static ssize_t iio_trigger_write_current(struct device *dev,
indio_dev->trig = trig;
- if (oldtrig && indio_dev->trig != oldtrig)
+ if (oldtrig)
iio_trigger_put(oldtrig);
if (indio_dev->trig)
iio_trigger_get(indio_dev->trig);