diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2013-11-12 22:49:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-11-24 22:07:13 +0100 |
commit | a35e1fd26826faa5595bcb4c8ab370f331221ff7 (patch) | |
tree | c8816d48cdc1e21d048bfed7de2bf351fda5e15c /drivers/iio/industrialio-trigger.c | |
parent | iio: Minor kerneldoc fix for iio_trigger_write_current() (diff) | |
download | linux-a35e1fd26826faa5595bcb4c8ab370f331221ff7.tar.xz linux-a35e1fd26826faa5595bcb4c8ab370f331221ff7.zip |
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.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); |