From f2c714a0a230c9b4ffdf45c5d203b8cd35126353 Mon Sep 17 00:00:00 2001 From: Jonathan Cameron Date: Sat, 2 May 2015 11:35:02 +0100 Subject: [PATCH] iio:temp:mlx90614 trivial drop of unnecessary ret return from write_raw. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is mostly part of an effort to clean out our current warnings and make the autobuilder build reports more useful. Still a worthwhile if trivial cleanup! Signed-off-by: Jonathan Cameron Reported-by: kbuild test robot Cc: Vianney le Clément de Saint-Marcq Cc: Peter Meerwald --- drivers/iio/temperature/mlx90614.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/iio/temperature/mlx90614.c b/drivers/iio/temperature/mlx90614.c index b2d3b56..cb2e8ad 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; } -- 2.7.4