Commit 7638c2ed authored by Dan Carpenter's avatar Dan Carpenter Committed by Jonathan Cameron

iio:imu:adis16400 remove an unneeded check

We know "ret" is zero here so there is no need to check.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 97b6ee52
...@@ -281,7 +281,7 @@ static ssize_t adis16400_write_frequency(struct device *dev, ...@@ -281,7 +281,7 @@ static ssize_t adis16400_write_frequency(struct device *dev,
st->variant->set_freq(st, val); st->variant->set_freq(st, val);
mutex_unlock(&indio_dev->mlock); mutex_unlock(&indio_dev->mlock);
return ret ? ret : len; return len;
} }
/* Power down the device */ /* Power down the device */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment