[PATCH] platform/x86: wmi-capdata01: Remove unneeded semicolon

Chen Ni posted 1 patch 2 months, 1 week ago
drivers/platform/x86/lenovo/wmi-capdata01.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] platform/x86: wmi-capdata01: Remove unneeded semicolon
Posted by Chen Ni 2 months, 1 week ago
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/wmi-capdata01.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/lenovo/wmi-capdata01.c b/drivers/platform/x86/lenovo/wmi-capdata01.c
index c922680b3cba..fc7e3454e71d 100644
--- a/drivers/platform/x86/lenovo/wmi-capdata01.c
+++ b/drivers/platform/x86/lenovo/wmi-capdata01.c
@@ -93,7 +93,7 @@ int lwmi_cd01_get_data(struct cd01_list *list, u32 attribute_id, struct capdata0
 			continue;
 		memcpy(output, &list->data[idx], sizeof(list->data[idx]));
 		return 0;
-	};
+	}
 
 	return -EINVAL;
 }
-- 
2.25.1
Re: [PATCH] platform/x86: wmi-capdata01: Remove unneeded semicolon
Posted by Ilpo Järvinen 1 month, 3 weeks ago
On Tue, 29 Jul 2025 11:16:31 +0800, Chen Ni wrote:

> Remove unnecessary semicolons reported by Coccinelle/coccicheck and the
> semantic patch at scripts/coccinelle/misc/semicolon.cocci.
> 
> 


Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

The list of commits applied:
[1/1] platform/x86: wmi-capdata01: Remove unneeded semicolon
      commit: 3bffbe0497f9e3c7d80f22d9d0f60c984d42ab6d

--
 i.