All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers: iio: cdc: Drop redundant if check
@ 2023-01-05  2:53 Alexander Vorwerk
  2023-01-08 13:00 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Vorwerk @ 2023-01-05  2:53 UTC (permalink / raw)
  To: jic23; +Cc: linux-iio, linux-kernel, Alexander Vorwerk

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Alexander Vorwerk <zabe@avorwerk.net>
---
 drivers/iio/cdc/ad7746.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/iio/cdc/ad7746.c b/drivers/iio/cdc/ad7746.c
index 6f68651ce1d5..a1db5469f2d1 100644
--- a/drivers/iio/cdc/ad7746.c
+++ b/drivers/iio/cdc/ad7746.c
@@ -285,8 +285,7 @@ static int ad7746_select_channel(struct iio_dev *indio_dev,
 		if (ret < 0)
 			return ret;
 
-		if (chip->capdac_set != chan->channel)
-			chip->capdac_set = chan->channel;
+		chip->capdac_set = chan->channel;
 		break;
 	case IIO_VOLTAGE:
 	case IIO_TEMP:
-- 
2.17.1


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

* Re: [PATCH] drivers: iio: cdc: Drop redundant if check
  2023-01-05  2:53 [PATCH] drivers: iio: cdc: Drop redundant if check Alexander Vorwerk
@ 2023-01-08 13:00 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2023-01-08 13:00 UTC (permalink / raw)
  To: Alexander Vorwerk; +Cc: linux-iio, linux-kernel

On Thu,  5 Jan 2023 03:53:51 +0100
Alexander Vorwerk <zabe@avorwerk.net> wrote:

> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Alexander Vorwerk <zabe@avorwerk.net>
Applied to the togreg branch of iio.git.

Thanks,

Jonathan

> ---
>  drivers/iio/cdc/ad7746.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/iio/cdc/ad7746.c b/drivers/iio/cdc/ad7746.c
> index 6f68651ce1d5..a1db5469f2d1 100644
> --- a/drivers/iio/cdc/ad7746.c
> +++ b/drivers/iio/cdc/ad7746.c
> @@ -285,8 +285,7 @@ static int ad7746_select_channel(struct iio_dev *indio_dev,
>  		if (ret < 0)
>  			return ret;
>  
> -		if (chip->capdac_set != chan->channel)
> -			chip->capdac_set = chan->channel;
> +		chip->capdac_set = chan->channel;
>  		break;
>  	case IIO_VOLTAGE:
>  	case IIO_TEMP:


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

end of thread, other threads:[~2023-01-08 12:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-05  2:53 [PATCH] drivers: iio: cdc: Drop redundant if check Alexander Vorwerk
2023-01-08 13:00 ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.