From: Peter Meerwald Date: Tue, 12 Nov 2013 21:49:00 +0000 (+0000) Subject: iio: Remove redundant check that new trigger is different from old X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a35e1fd26826faa5595bcb4c8ab370f331221ff7;p=openwrt%2Fstaging%2Fblogic.git iio: Remove redundant check that new trigger is different from old same check is performed a new lines above Signed-off-by: Peter Meerwald Signed-off-by: Jonathan Cameron --- 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);