diff options
-rw-r--r-- | drivers/iio/temperature/mlx90614.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/temperature/mlx90614.c b/drivers/iio/temperature/mlx90614.c index b2d3b56f1260..cb2e8ad8bfdc 100644 --- a/drivers/iio/temperature/mlx90614.c +++ b/drivers/iio/temperature/mlx90614.c @@ -254,9 +254,7 @@ static int mlx90614_write_raw(struct iio_dev *indio_dev, mutex_unlock(&data->lock); mlx90614_power_put(data); - if (ret < 0) - return ret; - return 0; + return ret; default: return -EINVAL; } |