From: Simon Horman <horms@kernel.org>
To: Chen Ni <nichen@iscas.ac.cn>
Cc: richardcochran@gmail.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next] ptp: ptp_idt82p33: Convert comma to semicolon
Date: Tue, 3 Sep 2024 16:21:25 +0100 [thread overview]
Message-ID: <20240903152125.GA4792@kernel.org> (raw)
In-Reply-To: <20240903030303.494089-1-nichen@iscas.ac.cn>
On Tue, Sep 03, 2024 at 11:03:02AM +0800, Chen Ni wrote:
> Replace a comma between expression statements by a semicolon.
Thanks,
It might be nice to add a bit more text here.
Describing the motivation for the change and how the problem was found.
E.g.
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.
Found by inspection.
No functional change intended.
Compile tested only.
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> ---
> drivers/ptp/ptp_idt82p33.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/ptp/ptp_idt82p33.c b/drivers/ptp/ptp_idt82p33.c
> index 92bb42c43fb2..d5732490ed9d 100644
> --- a/drivers/ptp/ptp_idt82p33.c
> +++ b/drivers/ptp/ptp_idt82p33.c
> @@ -1171,10 +1171,10 @@ static void idt82p33_caps_init(u32 index, struct ptp_clock_info *caps,
> caps->owner = THIS_MODULE;
> caps->max_adj = DCO_MAX_PPB;
> caps->n_per_out = MAX_PER_OUT;
> - caps->n_ext_ts = MAX_PHC_PLL,
> - caps->n_pins = max_pins,
> - caps->adjphase = idt82p33_adjwritephase,
> - caps->getmaxphase = idt82p33_getmaxphase,
> + caps->n_ext_ts = MAX_PHC_PLL;
> + caps->n_pins = max_pins;
> + caps->adjphase = idt82p33_adjwritephase;
> + caps->getmaxphase = idt82p33_getmaxphase;
> caps->adjfine = idt82p33_adjfine;
> caps->adjtime = idt82p33_adjtime;
> caps->gettime64 = idt82p33_gettime;
> --
> 2.25.1
>
>
prev parent reply other threads:[~2024-09-03 15:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-03 3:03 [PATCH net-next] ptp: ptp_idt82p33: Convert comma to semicolon Chen Ni
2024-09-03 15:21 ` Simon Horman [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=20240903152125.GA4792@kernel.org \
--to=horms@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nichen@iscas.ac.cn \
--cc=richardcochran@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).