Skip to contentSkip to conversation

clocksource/timer-econet-en751221: Convert comma to semicolon

PATCH Applied Chen Ni 4 participants 5 messages Jun 3, 2025 – Jul 25, 2025

Subsystems (3)
lore
Share & tools
lore

Chen Ni

author
#0 lore raw

PATCH 1/1 clocksource/timer-econet-en751221: Convert comma to semicolon

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.

---
 drivers/clocksource/timer-econet-en751221.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/timer-econet-en751221.c +1 -1
index 3b449fdaafee..4008076b1a21 100644
@@ -146,7 +146,7 @@ static int __init cevt_init(struct device_node *np)
 	for_each_possible_cpu(i) {
 		struct clock_event_device *cd = &per_cpu(econet_timer_pcpu, i);
 
-		cd->rating		= 310,
+		cd->rating		= 310;
 		cd->features		= CLOCK_EVT_FEAT_ONESHOT |
 					  CLOCK_EVT_FEAT_C3STOP |
 					  CLOCK_EVT_FEAT_PERCPU;
Signature · 1 line
2.25.1
maintainer Tested-by on v1 1/1
#1 lore raw
Quoted 11 lines · 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.

The comma was indeed unintended, thank you.

Caleb

Quoted 17 lines
---
  drivers/clocksource/timer-econet-en751221.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/timer-econet-en751221.c +1 -1
index 3b449fdaafee..4008076b1a21 100644
@@ -146,7 +146,7 @@ static int __init cevt_init(struct device_node *np)
  	for_each_possible_cpu(i) {
  		struct clock_event_device *cd = &per_cpu(econet_timer_pcpu, i);
 
-		cd->rating		= 310,
+		cd->rating		= 310;
  		cd->features		= CLOCK_EVT_FEAT_ONESHOT |
  					  CLOCK_EVT_FEAT_C3STOP |
  					  CLOCK_EVT_FEAT_PERCPU;
#2 lore raw
In reply to Chen Ni
Quoted 6 lines · 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.

Quoted 6 lines

Found by inspection.
No functional change intended.
Compile tested only.

---

Applied, thanks

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
merge bot Applied
#3 lore raw
In reply to Chen Ni
The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     85242ccffd57ba4f8dceec7e520da6065d20fd87
Gitweb:        https://git.kernel.org/tip/85242ccffd57ba4f8dceec7e520da6065d20fd87
Author:        Chen Ni <[email protected]>
AuthorDate:    Tue, 03 Jun 2025 14:04:50 +08:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Tue, 15 Jul 2025 13:23:38 +02:00

clocksource/timer-econet-en751221: Convert comma to semicolon

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.

---
 drivers/clocksource/timer-econet-en751221.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/timer-econet-en751221.c +1 -1
index 3b449fd..4008076 100644
@@ -146,7 +146,7 @@ static int __init cevt_init(struct device_node *np)
 	for_each_possible_cpu(i) {
 		struct clock_event_device *cd = &per_cpu(econet_timer_pcpu, i);
 
-		cd->rating		= 310,
+		cd->rating		= 310;
 		cd->features		= CLOCK_EVT_FEAT_ONESHOT |
 					  CLOCK_EVT_FEAT_C3STOP |
 					  CLOCK_EVT_FEAT_PERCPU;
merge bot Applied
#4 lore raw
In reply to Chen Ni
The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     7a3174ef0ce3b507a4a22b25822f13f454eab9f4
Gitweb:        https://git.kernel.org/tip/7a3174ef0ce3b507a4a22b25822f13f454eab9f4
Author:        Chen Ni <[email protected]>
AuthorDate:    Tue, 03 Jun 2025 14:04:50 +08:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Fri, 25 Jul 2025 12:07:01 +02:00

clocksource/timer-econet-en751221: Convert comma to semicolon

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.

---
 drivers/clocksource/timer-econet-en751221.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/timer-econet-en751221.c +1 -1
index 3b449fd..4008076 100644
@@ -146,7 +146,7 @@ static int __init cevt_init(struct device_node *np)
 	for_each_possible_cpu(i) {
 		struct clock_event_device *cd = &per_cpu(econet_timer_pcpu, i);
 
-		cd->rating		= 310,
+		cd->rating		= 310;
 		cd->features		= CLOCK_EVT_FEAT_ONESHOT |
 					  CLOCK_EVT_FEAT_C3STOP |
 					  CLOCK_EVT_FEAT_PERCPU;