* [PATCH net-next v2] ptp: ptp_idt82p33: Convert comma to semicolon
@ 2024-09-04 1:50 Chen Ni
2024-09-04 3:59 ` Richard Cochran
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Chen Ni @ 2024-09-04 1:50 UTC (permalink / raw)
To: richardcochran; +Cc: netdev, linux-kernel, 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.
Found by inspection.
No functional change intended.
Compile tested only.
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
Changelog:
v1 -> v2:
1. Update commit message.
---
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next v2] ptp: ptp_idt82p33: Convert comma to semicolon
2024-09-04 1:50 [PATCH net-next v2] ptp: ptp_idt82p33: Convert comma to semicolon Chen Ni
@ 2024-09-04 3:59 ` Richard Cochran
2024-09-04 16:51 ` Simon Horman
2024-09-05 11:30 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Richard Cochran @ 2024-09-04 3:59 UTC (permalink / raw)
To: Chen Ni; +Cc: netdev, linux-kernel
On Wed, Sep 04, 2024 at 09:50:03AM +0800, Chen Ni wrote:
> 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>
Acked-by: Richard Cochran <richardcochran@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next v2] ptp: ptp_idt82p33: Convert comma to semicolon
2024-09-04 1:50 [PATCH net-next v2] ptp: ptp_idt82p33: Convert comma to semicolon Chen Ni
2024-09-04 3:59 ` Richard Cochran
@ 2024-09-04 16:51 ` Simon Horman
2024-09-05 11:30 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2024-09-04 16:51 UTC (permalink / raw)
To: Chen Ni; +Cc: richardcochran, netdev, linux-kernel
On Wed, Sep 04, 2024 at 09:50:03AM +0800, Chen Ni wrote:
> 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>
> ---
> Changelog:
>
> v1 -> v2:
>
> 1. Update commit message.
Thanks for the update.
I checked and I was not able to see any other instances of this
problem in this file.
Reviewed-by: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next v2] ptp: ptp_idt82p33: Convert comma to semicolon
2024-09-04 1:50 [PATCH net-next v2] ptp: ptp_idt82p33: Convert comma to semicolon Chen Ni
2024-09-04 3:59 ` Richard Cochran
2024-09-04 16:51 ` Simon Horman
@ 2024-09-05 11:30 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-09-05 11:30 UTC (permalink / raw)
To: Chen Ni; +Cc: richardcochran, netdev, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Wed, 4 Sep 2024 09:50:03 +0800 you wrote:
> 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.
>
> [...]
Here is the summary with links:
- [net-next,v2] ptp: ptp_idt82p33: Convert comma to semicolon
https://git.kernel.org/netdev/net-next/c/335cc75ce3d8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-05 11:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-04 1:50 [PATCH net-next v2] ptp: ptp_idt82p33: Convert comma to semicolon Chen Ni
2024-09-04 3:59 ` Richard Cochran
2024-09-04 16:51 ` Simon Horman
2024-09-05 11:30 ` patchwork-bot+netdevbpf
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).