libbpf: Remove unneeded semicolon in btf_dump_emit_type

Fixes the following coccicheck warning:

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

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/1588064829-70613-1-git-send-email-zou_wei@huawei.com
This commit is contained in:
Zou Wei 2020-04-28 17:07:09 +08:00 committed by Daniel Borkmann
parent b26d1e2b60
commit a6bbdf2e75

View File

@ -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)) { if (!btf_dump_is_blacklisted(d, id)) {
btf_dump_emit_typedef_def(d, id, t, 0); btf_dump_emit_typedef_def(d, id, t, 0);
btf_dump_printf(d, ";\n\n"); btf_dump_printf(d, ";\n\n");
}; }
tstate->fwd_emitted = 1; tstate->fwd_emitted = 1;
break; break;
default: default: