mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] usb: typec: ucsi: glink: Remove unnecessary semicolon
@ 2024-07-15  7:39 Chen Ni
  2024-07-15 10:44 ` Dmitry Baryshkov
  2024-07-30  8:42 ` Heikki Krogerus
  0 siblings, 2 replies; 3+ messages in thread
From: Chen Ni @ 2024-07-15  7:39 UTC (permalink / raw)
  To: heikki.krogerus, gregkh, dmitry.baryshkov, neil.armstrong,
	johan+linaro, quic_kriskura
  Cc: linux-usb, linux-kernel, Chen Ni

Remove unnecessary semicolon at the end of the switch statement.
This is detected by coccinelle.

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

diff --git a/drivers/usb/typec/ucsi/ucsi_glink.c b/drivers/usb/typec/ucsi/ucsi_glink.c
index 16c328497e0b..459a5af02910 100644
--- a/drivers/usb/typec/ucsi/ucsi_glink.c
+++ b/drivers/usb/typec/ucsi/ucsi_glink.c
@@ -263,7 +263,7 @@ static void pmic_glink_ucsi_callback(const void *data, size_t len, void *priv)
 	case UC_UCSI_USBC_NOTIFY_IND:
 		schedule_work(&ucsi->notify_work);
 		break;
-	};
+	}
 }
 
 static void pmic_glink_ucsi_pdr_notify(void *priv, int state)
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] usb: typec: ucsi: glink: Remove unnecessary semicolon
  2024-07-15  7:39 [PATCH] usb: typec: ucsi: glink: Remove unnecessary semicolon Chen Ni
@ 2024-07-15 10:44 ` Dmitry Baryshkov
  2024-07-30  8:42 ` Heikki Krogerus
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Baryshkov @ 2024-07-15 10:44 UTC (permalink / raw)
  To: Chen Ni
  Cc: heikki.krogerus, gregkh, neil.armstrong, johan+linaro,
	quic_kriskura, linux-usb, linux-kernel

On Mon, Jul 15, 2024 at 03:39:47PM GMT, Chen Ni wrote:
> Remove unnecessary semicolon at the end of the switch statement.
> This is detected by coccinelle.
> 
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> ---
>  drivers/usb/typec/ucsi/ucsi_glink.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] usb: typec: ucsi: glink: Remove unnecessary semicolon
  2024-07-15  7:39 [PATCH] usb: typec: ucsi: glink: Remove unnecessary semicolon Chen Ni
  2024-07-15 10:44 ` Dmitry Baryshkov
@ 2024-07-30  8:42 ` Heikki Krogerus
  1 sibling, 0 replies; 3+ messages in thread
From: Heikki Krogerus @ 2024-07-30  8:42 UTC (permalink / raw)
  To: Chen Ni
  Cc: gregkh, dmitry.baryshkov, neil.armstrong, johan+linaro,
	quic_kriskura, linux-usb, linux-kernel

On Mon, Jul 15, 2024 at 03:39:47PM +0800, Chen Ni wrote:
> Remove unnecessary semicolon at the end of the switch statement.
> This is detected by coccinelle.
> 
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>

> ---
>  drivers/usb/typec/ucsi/ucsi_glink.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/typec/ucsi/ucsi_glink.c b/drivers/usb/typec/ucsi/ucsi_glink.c
> index 16c328497e0b..459a5af02910 100644
> --- a/drivers/usb/typec/ucsi/ucsi_glink.c
> +++ b/drivers/usb/typec/ucsi/ucsi_glink.c
> @@ -263,7 +263,7 @@ static void pmic_glink_ucsi_callback(const void *data, size_t len, void *priv)
>  	case UC_UCSI_USBC_NOTIFY_IND:
>  		schedule_work(&ucsi->notify_work);
>  		break;
> -	};
> +	}
>  }
>  
>  static void pmic_glink_ucsi_pdr_notify(void *priv, int state)
> -- 
> 2.25.1

-- 
heikki

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-30  8:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-15  7:39 [PATCH] usb: typec: ucsi: glink: Remove unnecessary semicolon Chen Ni
2024-07-15 10:44 ` Dmitry Baryshkov
2024-07-30  8:42 ` Heikki Krogerus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®