diff options
author | Peter Meerwald | 2013-11-12 21:49:00 +0000 |
---|---|---|
committer | Jonathan Cameron | 2013-11-24 21:07:13 +0000 |
commit | a35e1fd26826faa5595bcb4c8ab370f331221ff7 (patch) | |
tree | c8816d48cdc1e21d048bfed7de2bf351fda5e15c /drivers/iio | |
parent | 17666ef3c765afa9f70de1f3c733a2f7ea2f6ca3 (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')
-rw-r--r-- | drivers/iio/industrialio-trigger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/industrialio-trigger.c b/drivers/iio/industrialio-trigger.c index b1b25294e35d..7ba2f002ffca 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); |