iio: buffer: remove unneeded test
The same code is executed regardless ret value, so this test can be removed. Also fix coverity scan CID 1268786. Signed-off-by: Laurent Navet <laurent.navet@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
9d4752544d
commit
ff7d4f5981
1 changed files with 0 additions and 2 deletions
|
@ -888,8 +888,6 @@ static ssize_t iio_buffer_store_enable(struct device *dev,
|
|||
ret = __iio_update_buffers(indio_dev,
|
||||
NULL, indio_dev->buffer);
|
||||
|
||||
if (ret < 0)
|
||||
goto done;
|
||||
done:
|
||||
mutex_unlock(&indio_dev->mlock);
|
||||
return (ret < 0) ? ret : len;
|
||||
|
|
Loading…
Reference in a new issue