diff mbox series

HID: mcp2221: Remove unneeded semicolon

Message ID 20240701071639.846169-1-nichen@iscas.ac.cn
State New
Headers show
Series HID: mcp2221: Remove unneeded semicolon | expand

Commit Message

Chen Ni July 1, 2024, 7:16 a.m. UTC
Remove unneeded semicolon.
This is detected by coccinelle.

Fixes: 960f9df7c620 ("HID: mcp2221: add ADC/DAC support via iio subsystem")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 drivers/hid/hid-mcp2221.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jonathan Cameron July 1, 2024, 9:12 a.m. UTC | #1
On Mon, 1 Jul 2024 15:16:39 +0800
Chen Ni <nichen@iscas.ac.cn> wrote:

> Remove unneeded semicolon.
> This is detected by coccinelle.
> 
> Fixes: 960f9df7c620 ("HID: mcp2221: add ADC/DAC support via iio subsystem")

Fixes tag not appropriate for this one as it's not a bug.

> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Otherwise looks fine to me.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

> ---
>  drivers/hid/hid-mcp2221.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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;
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;