2020-04-28 09:04:59

by Zou Wei

[permalink] [raw]
Subject: [PATCH -next] libbpf: Remove unneeded semicolon

Fixes coccicheck warning:

tools/lib/bpf/btf_dump.c:661:4-5: Unneeded semicolon

Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Zou Wei <[email protected]>
---
tools/lib/bpf/btf_dump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/lib/bpf/btf_dump.c b/tools/lib/bpf/btf_dump.c
index 0c28ee8..de07e55 100644
--- a/tools/lib/bpf/btf_dump.c
+++ b/tools/lib/bpf/btf_dump.c
@@ -658,7 +658,7 @@ static void btf_dump_emit_type(struct btf_dump *d, __u32 id, __u32 cont_id)
if (!btf_dump_is_blacklisted(d, id)) {
btf_dump_emit_typedef_def(d, id, t, 0);
btf_dump_printf(d, ";\n\n");
- };
+ }
tstate->fwd_emitted = 1;
break;
default:
--
2.6.2


2020-04-28 19:53:56

by Daniel Borkmann

[permalink] [raw]
Subject: Re: [PATCH -next] libbpf: Remove unneeded semicolon

On 4/28/20 11:07 AM, Zou Wei wrote:
> Fixes coccicheck warning:
>
> tools/lib/bpf/btf_dump.c:661:4-5: Unneeded semicolon
>
> Reported-by: Hulk Robot <[email protected]>
> Signed-off-by: Zou Wei <[email protected]>

Applied, thanks!