From: "Heiko Stübner" <heiko@sntech.de>
To: lee@kernel.org, Chen Ni <nichen@iscas.ac.cn>
Cc: linux-kernel@vger.kernel.org, Chen Ni <nichen@iscas.ac.cn>
Subject: Re: [PATCH] mfd: Convert comma to semicolon
Date: Mon, 10 Mar 2025 09:37:43 +0100 [thread overview]
Message-ID: <13715971.uLZWGnKmhe@diego> (raw)
In-Reply-To: <20250310031145.650950-1-nichen@iscas.ac.cn>
Am Montag, 10. März 2025, 04:11:45 MEZ schrieb Chen Ni:
> Replace comma between expressions with semicolons.
>
> Using a ',' in place of a ';' can have unintended side effects.
> Although that is not the case here, it is seems best to use ';'
> unless ',' is intended.
oh ... wonder how I could've messed that up.
And thanks a lot for finding this.
> Found by inspection.
> No functional change intended.
> Compile tested only.
>
Fixes: 998f70d1806b ("mfd: Add base driver for qnap-mcu devices")
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> ---
> drivers/mfd/qnap-mcu.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/mfd/qnap-mcu.c b/drivers/mfd/qnap-mcu.c
> index 4be39d8b2905..89a8a1913d42 100644
> --- a/drivers/mfd/qnap-mcu.c
> +++ b/drivers/mfd/qnap-mcu.c
> @@ -158,9 +158,9 @@ int qnap_mcu_exec(struct qnap_mcu *mcu,
>
> mutex_lock(&mcu->bus_lock);
>
> - reply->data = rx,
> - reply->length = length,
> - reply->received = 0,
> + reply->data = rx;
> + reply->length = length;
> + reply->received = 0;
> reinit_completion(&reply->done);
>
> qnap_mcu_write(mcu, cmd_data, cmd_data_size);
>
next prev parent reply other threads:[~2025-03-10 8:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-10 3:11 Chen Ni
2025-03-10 8:37 ` Heiko Stübner [this message]
2025-03-14 10:55 ` (subset) " Lee Jones
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=13715971.uLZWGnKmhe@diego \
--to=heiko@sntech.de \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nichen@iscas.ac.cn \
/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
all inboxes | Powered by JetHome®