Skip to contentSkip to conversation

tools/lib/thermal: remove unneeded semicolon

PATCH Applied Jiapeng Chong 2 participants 4 messages Apr 27, 2022 – May 19, 2022 Thermal

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 tools/lib/thermal: remove unneeded semicolon

Fix the following coccicheck warnings:

./tools/lib/thermal/commands.c:215:2-3: Unneeded semicolon.

---
 tools/lib/thermal/commands.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/thermal/commands.c +1 -1
index 4e289ca1e5f3..73d4d4e8d6ec 100644
@@ -212,7 +212,7 @@ static int handle_netlink(struct nl_cache_ops *unused,
 
 	default:
 		return THERMAL_ERROR;
-	};
+	}
 
 	return ret;
 }
Signature · 1 line
2.20.1.7.g153144c
#1 lore raw

PATCH 2/2 tools/thermal: remove unneeded semicolon

Fix the following coccicheck warnings:

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

---
 tools/thermal/thermometer/thermometer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/thermal/thermometer/thermometer.c +1 -1
index 914986f20a37..1a87a0a77f9f 100644
@@ -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");
Signature · 1 line
2.20.1.7.g153144c
#2 lore raw

[thermal: thermal/next] tools/thermal: remove unneeded semicolon

The following commit has been merged into the thermal/next branch of thermal:

The following commit has been merged into the thermal/next branch of thermal:

Commit-ID:     cb4487d2b4043bbe98f60f2628387b40fa4896f8
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//cb4487d2b4043bbe98f60f2628387b40fa4896f8
Author:        Jiapeng Chong <[email protected]>
AuthorDate:    Wed, 27 Apr 2022 11:06:19 +08:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Thu, 19 May 2022 12:11:52 +02:00

tools/thermal: remove unneeded semicolon

Fix the following coccicheck warnings:

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

---
 tools/thermal/thermometer/thermometer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/thermal/thermometer/thermometer.c +1 -1
index 914986f..1a87a0a 100644
@@ -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");
#3 lore raw
In reply to Jiapeng Chong
The following commit has been merged into the thermal/next branch of thermal:

The following commit has been merged into the thermal/next branch of thermal:

Commit-ID:     f21b57eb12bfe0d38794145f976ca8127d8846db
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//f21b57eb12bfe0d38794145f976ca8127d8846db
Author:        Jiapeng Chong <[email protected]>
AuthorDate:    Wed, 27 Apr 2022 11:06:18 +08:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Thu, 19 May 2022 12:11:52 +02:00

tools/lib/thermal: remove unneeded semicolon

Fix the following coccicheck warnings:

./tools/lib/thermal/commands.c:215:2-3: Unneeded semicolon.

---
 tools/lib/thermal/commands.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/thermal/commands.c +1 -1
index 4e289ca..73d4d4e 100644
@@ -212,7 +212,7 @@ static int handle_netlink(struct nl_cache_ops *unused,
 
 	default:
 		return THERMAL_ERROR;
-	};
+	}
 
 	return ret;
 }