From: Jonathan Cameron <jic23@kernel.org>
To: Alexander Vorwerk <alec@vc-celle.de>
Cc: lars@metafoo.de, Michael.Hennerich@analog.com,
gregkh@linuxfoundation.org, linux-iio@vger.kernel.org,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: iio: cdc: remove braces from single line if blocks
Date: Mon, 30 Aug 2021 12:30:10 +0100 [thread overview]
Message-ID: <20210830123010.682d59f5@jic23-huawei> (raw)
In-Reply-To: <20210820224914.1260-1-alec@vc-celle.de>
On Sat, 21 Aug 2021 00:49:14 +0200
Alexander Vorwerk <alec@vc-celle.de> wrote:
> Remove braces from single line if blocks to clear checkpatch warnings.
> WARNING: braces {} are not necessary for single statement blocks
>
> Signed-off-by: Alexander Vorwerk <alec@vc-celle.de>
Applied. Thanks
> ---
> drivers/staging/iio/cdc/ad7746.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c
> index 78ac720266e6..71c709771676 100644
> --- a/drivers/staging/iio/cdc/ad7746.c
> +++ b/drivers/staging/iio/cdc/ad7746.c
> @@ -241,10 +241,8 @@ static int ad7746_select_channel(struct iio_dev *indio_dev,
> if (ret < 0)
> return ret;
>
> - if (chip->capdac_set != chan->channel) {
> -
> + if (chip->capdac_set != chan->channel)
> chip->capdac_set = chan->channel;
> - }
> break;
> case IIO_VOLTAGE:
> case IIO_TEMP:
prev parent reply other threads:[~2021-08-30 11:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-20 22:49 [PATCH] staging: iio: cdc: remove braces from single line if blocks Alexander Vorwerk
2021-08-30 11:30 ` 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=20210830123010.682d59f5@jic23-huawei \
--to=jic23@kernel.org \
--cc=Michael.Hennerich@analog.com \
--cc=alec@vc-celle.de \
--cc=gregkh@linuxfoundation.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/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