[PATCH] tools/thermal: Remove unneeded semicolon

Haowen Bai posted 1 patch 4 years ago
tools/thermal/thermometer/thermometer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] tools/thermal: Remove unneeded semicolon
Posted by Haowen Bai 4 years ago
Fixes coccicheck warning:

tools/thermal/thermometer/thermometer.c:147:3-4: Unneeded semicolon

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
---
 tools/thermal/thermometer/thermometer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/thermal/thermometer/thermometer.c b/tools/thermal/thermometer/thermometer.c
index 914986f20a37..1a87a0a77f9f 100644
--- a/tools/thermal/thermometer/thermometer.c
+++ b/tools/thermal/thermometer/thermometer.c
@@ -144,7 +144,7 @@ static int configuration_init(const char *path, struct configuration *config)
 		if (!node) {
 			ERROR("Missing node name '%d'\n", i);
 			return -1;
-		};
+		}
 
 		if (!config_setting_lookup_string(node, "name", &name)) {
 			ERROR("Thermal zone name not found\n");
-- 
2.7.4
Re: [PATCH] tools/thermal: Remove unneeded semicolon
Posted by Daniel Lezcano 3 years, 12 months ago
On 06/05/2022 03:50, Haowen Bai wrote:
> Fixes coccicheck warning:
> 
> tools/thermal/thermometer/thermometer.c:147:3-4: Unneeded semicolon
> 
> Signed-off-by: Haowen Bai <baihaowen@meizu.com>
> ---

Applied, thanks


-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog