diff mbox series

[v2] HID: mcp2221: Remove unnecessary semicolon

Message ID 20240709012223.17393-1-nichen@iscas.ac.cn (mailing list archive)
State Mainlined
Commit ad1ff1f250c966b945d40a6a2e548f7d701b96df
Delegated to: Jiri Kosina
Headers show
Series [v2] HID: mcp2221: Remove unnecessary semicolon | expand

Commit Message

Chen Ni July 9, 2024, 1:22 a.m. UTC
Remove unnecessary semicolon at the end of the switch statement.
This is detected by coccinelle.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
Changelog:

v1 -> v2:

1. Update commit message.
2. Remove Fixes tag.
---
 drivers/hid/hid-mcp2221.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Benjamin Tissoires July 12, 2024, 4:35 p.m. UTC | #1
On Tue, 09 Jul 2024 09:22:23 +0800, Chen Ni wrote:
> Remove unnecessary semicolon at the end of the switch statement.
> This is detected by coccinelle.
> 
> 

Applied to hid/hid.git (for-6.11/trivial), thanks!

[1/1] HID: mcp2221: Remove unnecessary semicolon
      https://git.kernel.org/hid/hid/c/ad1ff1f250c9

Cheers,
diff mbox series

Patch

diff --git a/drivers/hid/hid-mcp2221.c b/drivers/hid/hid-mcp2221.c
index da5ea5a23b08..0f93c22a479f 100644
--- a/drivers/hid/hid-mcp2221.c
+++ b/drivers/hid/hid-mcp2221.c
@@ -1048,7 +1048,7 @@  static int mcp_iio_channels(struct mcp2221 *mcp)
 			break;
 		default:
 			continue;
-		};
+		}
 
 		chan->type = IIO_VOLTAGE;
 		chan->indexed = 1;