* [PATCH 1/2] tools/lib/thermal: remove unneeded semicolon
@ 2022-04-27 3:06 Jiapeng Chong
2022-04-27 3:06 ` [PATCH 2/2] tools/thermal: " Jiapeng Chong
0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2022-04-27 3:06 UTC (permalink / raw)
To: rafael
Cc: daniel.lezcano, amitk, rui.zhang, linux-pm, linux-kernel,
Jiapeng Chong, Abaci Robot
Fix the following coccicheck warnings:
./tools/lib/thermal/commands.c:215:2-3: Unneeded semicolon.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
tools/lib/thermal/commands.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/lib/thermal/commands.c b/tools/lib/thermal/commands.c
index 4e289ca1e5f3..73d4d4e8d6ec 100644
--- a/tools/lib/thermal/commands.c
+++ b/tools/lib/thermal/commands.c
@@ -212,7 +212,7 @@ static int handle_netlink(struct nl_cache_ops *unused,
default:
return THERMAL_ERROR;
- };
+ }
return ret;
}
--
2.20.1.7.g153144c
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2/2] tools/thermal: remove unneeded semicolon
2022-04-27 3:06 [PATCH 1/2] tools/lib/thermal: remove unneeded semicolon Jiapeng Chong
@ 2022-04-27 3:06 ` Jiapeng Chong
0 siblings, 0 replies; 2+ messages in thread
From: Jiapeng Chong @ 2022-04-27 3:06 UTC (permalink / raw)
To: rafael
Cc: daniel.lezcano, amitk, rui.zhang, linux-pm, linux-kernel,
Jiapeng Chong, Abaci Robot
Fix the following coccicheck warnings:
./tools/thermal/thermometer/thermometer.c:147:3-4: Unneeded semicolon.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.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.20.1.7.g153144c
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-27 3:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27 3:06 [PATCH 1/2] tools/lib/thermal: remove unneeded semicolon Jiapeng Chong
2022-04-27 3:06 ` [PATCH 2/2] tools/thermal: " Jiapeng Chong
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®