[PATCH] pwm: mediatek: Remove unneeded semicolon

Chen Ni posted 1 patch 1 month, 1 week ago
drivers/pwm/pwm-mediatek.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] pwm: mediatek: Remove unneeded semicolon
Posted by Chen Ni 1 month, 1 week ago
Remove unnecessary semicolons reported by Coccinelle/coccicheck and the
semantic patch at scripts/coccinelle/misc/semicolon.cocci.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 drivers/pwm/pwm-mediatek.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c
index f2c918c0d26a..fecc1b91e14c 100644
--- a/drivers/pwm/pwm-mediatek.c
+++ b/drivers/pwm/pwm-mediatek.c
@@ -266,7 +266,7 @@ static int pwm_mediatek_round_waveform_fromhw(struct pwm_chip *chip, struct pwm_
 				DIV_ROUND_UP_ULL(NSEC_PER_SEC, clk_rate),
 			.duty_length_ns = 0,
 		};
-	};
+	}
 
 	dev_dbg(&chip->dev, "pwm#%u: ENABLE: %x, CLKDIV: %x, PERIOD: %x, DUTY: %x @%lu -> %lld/%lld\n",
 		pwm->hwpwm, wfhw->enable, clkdiv, cnt_period, cnt_duty, clk_rate,
-- 
2.25.1
Re: [PATCH] pwm: mediatek: Remove unneeded semicolon
Posted by Uwe Kleine-König 1 month, 2 weeks ago
Hello,

On Thu, Nov 06, 2025 at 05:48:47AM +0800, Chen Ni wrote:
> Remove unnecessary semicolons reported by Coccinelle/coccicheck and the
> semantic patch at scripts/coccinelle/misc/semicolon.cocci.
> 
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>

Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next
. I added a reference to the commit that introduced it and fixed the
author date assuming you're not living in the future :-)

Best regards
Uwe