Skip to contentSkip to conversation

tracing/histogram: Fix semicolon.cocci warnings

PATCH New Steven Rostedt 1 participant 1 message Nov 1, 2021 Tracing

lore
Share & tools
lore

Steven Rostedt

author maintainer
#0 lore raw

PATCH 1/1 tracing/histogram: Fix semicolon.cocci warnings

kernel test robot <[email protected]>
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
for-next

Head SHA1: feea69ec121f067073868cebe0cb9d003e64ad80

kernel test robot (1):
tracing/histogram: Fix semicolon.cocci warnings

----

 kernel/trace/trace_events_hist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---------------------------
commit feea69ec121f067073868cebe0cb9d003e64ad80
Author: kernel test robot <[email protected]>
Date:   Sat Oct 30 08:56:15 2021 +0800

tracing/histogram: Fix semicolon.cocci warnings

kernel/trace/trace_events_hist.c:6039:2-3: Unneeded semicolon

Remove unneeded semicolon.

Generated by: scripts/coccinelle/misc/semicolon.cocci

Fixes c5eac6ee8bc5 ("tracing/histogram: Simplify handling of .sym-offset in expressions")
CC Kalesh Singh <[email protected]>
kernel/trace/trace_events_hist.c +1 -1
index 452daad7cfb3..682870d004c4 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))