X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH] platform/x86: thinkpad_acpi: Remove unneeded semicolon
@ 2026-01-15  8:16 Chen Ni
  2026-01-15  9:50 ` Ilpo Järvinen
  0 siblings, 1 reply; 2+ messages in thread
From: Chen Ni @ 2026-01-15  8:16 UTC (permalink / raw)
  To: hmh, mpearson-lenovo, derekjohn.clark, hansg, ilpo.jarvinen
  Cc: ibm-acpi-devel, platform-driver-x86, linux-kernel, Chen Ni

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/platform/x86/lenovo/thinkpad_acpi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/lenovo/thinkpad_acpi.c b/drivers/platform/x86/lenovo/thinkpad_acpi.c
index a272f27e6227..6b0e4b4c485e 100644
--- a/drivers/platform/x86/lenovo/thinkpad_acpi.c
+++ b/drivers/platform/x86/lenovo/thinkpad_acpi.c
@@ -11164,7 +11164,7 @@ static bool display_damage(char *buf, int *count, char *type, unsigned int dmg_s
 			break;
 		default:
 			pr_err("Unexpected value %d in switch statement\n", pos_status);
-		};
+		}
 
 		switch (panel_status) {
 		case POS_LEFT:
@@ -11179,7 +11179,7 @@ static bool display_damage(char *buf, int *count, char *type, unsigned int dmg_s
 		default:
 			*count += sysfs_emit_at(buf, *count, "Undefined\n");
 			break;
-		};
+		}
 		damage_detected = true;
 	}
 	return damage_detected;
-- 
2.25.1


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

* Re: [PATCH] platform/x86: thinkpad_acpi: Remove unneeded semicolon
  2026-01-15  8:16 [PATCH] platform/x86: thinkpad_acpi: Remove unneeded semicolon Chen Ni
@ 2026-01-15  9:50 ` Ilpo Järvinen
  0 siblings, 0 replies; 2+ messages in thread
From: Ilpo Järvinen @ 2026-01-15  9:50 UTC (permalink / raw)
  To: Chen Ni
  Cc: hmh, Mark Pearson, derekjohn.clark, Hans de Goede, ibm-acpi-devel,
	platform-driver-x86, LKML

On Thu, 15 Jan 2026, 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>
> ---
>  drivers/platform/x86/lenovo/thinkpad_acpi.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/platform/x86/lenovo/thinkpad_acpi.c b/drivers/platform/x86/lenovo/thinkpad_acpi.c
> index a272f27e6227..6b0e4b4c485e 100644
> --- a/drivers/platform/x86/lenovo/thinkpad_acpi.c
> +++ b/drivers/platform/x86/lenovo/thinkpad_acpi.c
> @@ -11164,7 +11164,7 @@ static bool display_damage(char *buf, int *count, char *type, unsigned int dmg_s
>  			break;
>  		default:
>  			pr_err("Unexpected value %d in switch statement\n", pos_status);
> -		};
> +		}
>  
>  		switch (panel_status) {
>  		case POS_LEFT:
> @@ -11179,7 +11179,7 @@ static bool display_damage(char *buf, int *count, char *type, unsigned int dmg_s
>  		default:
>  			*count += sysfs_emit_at(buf, *count, "Undefined\n");
>  			break;
> -		};
> +		}
>  		damage_detected = true;
>  	}
>  	return damage_detected;
> 

Thanks, I've folded this into the original change.

-- 
 i.


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

end of thread, other threads:[~2026-01-15  9:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-15  8:16 [PATCH] platform/x86: thinkpad_acpi: Remove unneeded semicolon Chen Ni
2026-01-15  9:50 ` Ilpo Järvinen

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