[PATCH] perf symbol: Remove unneeded semicolon

Chen Ni posted 1 patch 2 months, 4 weeks ago
tools/perf/util/synthetic-events.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] perf symbol: Remove unneeded semicolon
Posted by Chen Ni 2 months, 4 weeks ago
Remove unnecessary semicolons reported by Coccinelle/coccicheck and the
semantic patch at scripts/coccinelle/misc/semicolon.cocci.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 tools/perf/util/synthetic-events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/util/synthetic-events.c b/tools/perf/util/synthetic-events.c
index fcd1fd13c30e..5aa44c4aba62 100644
--- a/tools/perf/util/synthetic-events.c
+++ b/tools/perf/util/synthetic-events.c
@@ -389,7 +389,7 @@ static void perf_record_mmap2__read_build_id(struct perf_record_mmap2 *event,
 		dso_id.ino_generation = event->ino_generation;
 		dso_id.mmap2_valid = true;
 		dso_id.mmap2_ino_generation_valid = true;
-	};
+	}
 
 	dso = dsos__findnew_id(&machine->dsos, event->filename, &dso_id);
 	if (dso && dso__has_build_id(dso)) {
-- 
2.25.1
Re: [PATCH] perf symbol: Remove unneeded semicolon
Posted by Namhyung Kim 2 months, 3 weeks ago
On Tue, 11 Nov 2025 13:44:15 +0800, Chen Ni wrote:
> Remove unnecessary semicolons reported by Coccinelle/coccicheck and the
> semantic patch at scripts/coccinelle/misc/semicolon.cocci.
> 
> 
Applied to perf-tools-next, thanks!

Best regards,
Namhyung