Linux IIO development
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Alexander Vorwerk <zabe@avorwerk.net>
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers: iio: cdc: Drop redundant if check
Date: Sun, 8 Jan 2023 13:00:02 +0000	[thread overview]
Message-ID: <20230108130002.4e0e4f1c@jic23-huawei> (raw)
In-Reply-To: <20230105025351.12099-1-zabe@avorwerk.net>

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:


      reply	other threads:[~2023-01-08 12:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-05  2:53 [PATCH] drivers: iio: cdc: Drop redundant if check Alexander Vorwerk
2023-01-08 13:00 ` Jonathan Cameron [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230108130002.4e0e4f1c@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zabe@avorwerk.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox