public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio:temp:mlx90614 trivial drop of unnecessary ret return from write_raw.
@ 2015-05-02 10:35 Jonathan Cameron
  2015-05-13 17:40 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Cameron @ 2015-05-02 10:35 UTC (permalink / raw)
  To: linux-iio
  Cc: Jonathan Cameron, Vianney le Clément de Saint-Marcq,
	Peter Meerwald

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 <jic23@kernel.org>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Vianney le Clément de Saint-Marcq <vianney.leclement@essensium.com>
Cc: Peter Meerwald <pmeerw@pmeerw.net>
---
 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 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;
 	}
-- 
2.3.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] iio:temp:mlx90614 trivial drop of unnecessary ret return from write_raw.
  2015-05-02 10:35 [PATCH] iio:temp:mlx90614 trivial drop of unnecessary ret return from write_raw Jonathan Cameron
@ 2015-05-13 17:40 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2015-05-13 17:40 UTC (permalink / raw)
  To: linux-iio; +Cc: Vianney le Clément de Saint-Marcq, Peter Meerwald

On 02/05/15 11:35, Jonathan Cameron wrote:
> 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 <jic23@kernel.org>
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Cc: Vianney le Clément de Saint-Marcq <vianney.leclement@essensium.com>
> Cc: Peter Meerwald <pmeerw@pmeerw.net>
Applied to the togreg branch of iio.git - pushed out as testing.

Jonathan
> ---
>  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 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;
>  	}
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-13 17:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-02 10:35 [PATCH] iio:temp:mlx90614 trivial drop of unnecessary ret return from write_raw Jonathan Cameron
2015-05-13 17:40 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox