[PATCH] objtool: Remove unneeded semicolon

Chen Ni posted 1 patch 3 months, 2 weeks ago
There is a newer version of this series
tools/objtool/elf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] objtool: Remove unneeded semicolon
Posted by Chen Ni 3 months, 2 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/objtool/elf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c
index 5feeefc7fc8f..3f20b257ab25 100644
--- a/tools/objtool/elf.c
+++ b/tools/objtool/elf.c
@@ -451,7 +451,7 @@ static const char *demangle_name(struct symbol *sym)
 			str[i + 1] = '\0';
 			break;
 		}
-	};
+	}
 
 	return str;
 }
-- 
2.25.1
[tip: objtool/core] objtool: Remove unneeded semicolon
Posted by tip-bot2 for Chen Ni 3 months, 1 week ago
The following commit has been merged into the objtool/core branch of tip:

Commit-ID:     5eccd322390e20ca2385f4a4b34ab60e7258ad48
Gitweb:        https://git.kernel.org/tip/5eccd322390e20ca2385f4a4b34ab60e7258ad48
Author:        Chen Ni <nichen@iscas.ac.cn>
AuthorDate:    Mon, 20 Oct 2025 10:09:16 +08:00
Committer:     Josh Poimboeuf <jpoimboe@kernel.org>
CommitterDate: Thu, 30 Oct 2025 08:29:46 -07:00

objtool: Remove unneeded semicolon

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>
Link: https://patch.msgid.link/20251020020916.1070369-1-nichen@iscas.ac.cn
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
---
 tools/objtool/elf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c
index 5feeefc..3f20b25 100644
--- a/tools/objtool/elf.c
+++ b/tools/objtool/elf.c
@@ -451,7 +451,7 @@ static const char *demangle_name(struct symbol *sym)
 			str[i + 1] = '\0';
 			break;
 		}
-	};
+	}
 
 	return str;
 }