Skip to contentSkip to conversation

pinctrl: renesas: Remove unneeded semicolon

PATCH In review Jiapeng Chong 2 participants 2 messages Aug 13, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: renesas: Remove unneeded semicolon

Fix the following coccicheck warnings:

./drivers/pinctrl/renesas/pinctrl-rzg2l.c:1124:2-3: Unneeded semicolon. ./drivers/pinctrl/renesas/pinctrl-rzg2l.c:1114:2-3: Unneeded semicolon. ./drivers/pinctrl/renesas/pinctrl-rzg2l.c:1080:2-3: Unneeded semicolon.

---
 drivers/pinctrl/renesas/pinctrl-rzg2l.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/pinctrl/renesas/pinctrl-rzg2l.c +3 -3
index 9efe3f2..dbf2f52 100644
@@ -1077,7 +1077,7 @@ static int rzg2l_pinctrl_register(struct rzg2l_pinctrl *pctrl)
 	if (ret) {
 		dev_err(pctrl->dev, "failed to add GPIO chip: %i\n", ret);
 		return ret;
-	};
+	}
 
 	return 0;
 }
@@ -1111,7 +1111,7 @@ static int rzg2l_pinctrl_probe(struct platform_device *pdev)
 		ret = PTR_ERR(pctrl->clk);
 		dev_err(pctrl->dev, "failed to get GPIO clk : %i\n", ret);
 		return ret;
-	};
+	}
 
 	spin_lock_init(&pctrl->lock);
 
@@ -1121,7 +1121,7 @@ static int rzg2l_pinctrl_probe(struct platform_device *pdev)
 	if (ret) {
 		dev_err(pctrl->dev, "failed to enable GPIO clk: %i\n", ret);
 		return ret;
-	};
+	}
 
 	ret = devm_add_action_or_reset(&pdev->dev, rzg2l_pinctrl_clk_disable,
 				       pctrl->clk);
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Jiapeng,

Quoted 8 lines · Jiapeng Chong

Fix the following coccicheck warnings:

./drivers/pinctrl/renesas/pinctrl-rzg2l.c:1124:2-3: Unneeded semicolon. ./drivers/pinctrl/renesas/pinctrl-rzg2l.c:1114:2-3: Unneeded semicolon. ./drivers/pinctrl/renesas/pinctrl-rzg2l.c:1080:2-3: Unneeded semicolon.

Thanks!

As this fixes the top commit in my renesas-pinctrl-for-v5.15 branch, for which I'm about to send a PR soon, I will fold this into the offending commit.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds