iio:imu:adis16400 remove an unneeded check
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 30 Jan 2014 11:59:00 +0000 (11:59 +0000)
committerJonathan Cameron <jic23@kernel.org>
Mon, 3 Feb 2014 21:43:22 +0000 (21:43 +0000)
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>
drivers/iio/imu/adis16400_core.c

index 368660dfe135a51c3cac05dd90d7dcb75dacb7c2..411586f49dae4b3610bb41aff1cc44b93b74fe7b 100644 (file)
@@ -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 */