diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-01-30 11:59:00 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-02-03 21:43:22 +0000 |
commit | 7638c2ed9c1df35ea74ea992df6ea380c9f842e3 (patch) | |
tree | 5d7e92fc8583a38dd23dd6fc1ac8f23354a17fd5 /drivers/iio | |
parent | 97b6ee5253021d890eb9fdd95e0b64fd95494824 (diff) | |
download | linux-7638c2ed9c1df35ea74ea992df6ea380c9f842e3.tar.bz2 |
iio:imu:adis16400 remove an unneeded check
We know "ret" is zero here so there is no need to check.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/imu/adis16400_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/imu/adis16400_core.c b/drivers/iio/imu/adis16400_core.c index 368660dfe135..411586f49dae 100644 --- a/drivers/iio/imu/adis16400_core.c +++ b/drivers/iio/imu/adis16400_core.c @@ -281,7 +281,7 @@ static ssize_t adis16400_write_frequency(struct device *dev, st->variant->set_freq(st, val); mutex_unlock(&indio_dev->mlock); - return ret ? ret : len; + return len; } /* Power down the device */ |