forked from Minki/linux
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>
This commit is contained in:
parent
17666ef3c7
commit
a35e1fd268
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user