Skip to contentSkip to conversation

tracing:Remove unneeded semicolon

PATCH In review [email protected] 2 participants 2 messages Nov 1, 2021 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tracing:Remove unneeded semicolon

From: Zhang Mingyu <[email protected]>

Eliminate the following coccinelle check warning:
kernel/trace/trace_events_hist.c:6087:2-3

---
 kernel/trace/trace_events_hist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace_events_hist.c +1 -1
index cddf6bf165a0..61586f16a853 100644
@@ -6084,7 +6084,7 @@ static int event_hist_trigger_func(struct event_command *cmd_ops,
 	while (start) {
 		*(start + 4) = 'X';
 		start = strstr(start + 11, ".sym-offset");
-	};
+	}
 
 	attrs = parse_hist_trigger_attrs(file->tr, trigger);
 	if (IS_ERR(attrs))
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 4 lines · On Mon, 1 Nov 2021 05:56:02 +0000 [email protected] wrote:

From: Zhang Mingyu <[email protected]>

Eliminate the following coccinelle check warning:
kernel/trace/trace_events_hist.c:6087:2-3

Thanks, but a fix (by a robot) was already added to my queue.

https://lore.kernel.org/all/20211030005615.GA41257@3074f0d39c61/

-- Steve

Quoted 20 lines
---
 kernel/trace/trace_events_hist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace_events_hist.c +1 -1
index cddf6bf165a0..61586f16a853 100644
@@ -6084,7 +6084,7 @@ static int event_hist_trigger_func(struct event_command *cmd_ops,
 	while (start) {
 		*(start + 4) = 'X';
 		start = strstr(start + 11, ".sym-offset");
-	};
+	}
 
 	attrs = parse_hist_trigger_attrs(file->tr, trigger);
 	if (IS_ERR(attrs))