[PATCH -next] libbpf: remove redundant semi-colon

Subsystems: bpf [general] (safe dynamic programs and tools), bpf [library] (libbpf), the rest

STALE1990d

2 messages, 2 authors, 2021-04-01 · open the first message on its own page

[PATCH -next] libbpf: remove redundant semi-colon

From: Yang Yingliang <hidden>
Date: 2021-04-01 18:11:43

Signed-off-by: Yang Yingliang <redacted>
---
 tools/lib/bpf/linker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/lib/bpf/linker.c b/tools/lib/bpf/linker.c
index 46b16cbdcda3..4e08bc07e635 100644
--- a/tools/lib/bpf/linker.c
+++ b/tools/lib/bpf/linker.c
@@ -1895,7 +1895,7 @@ static int finalize_btf_ext(struct bpf_linker *linker)
 	hdr->func_info_len = funcs_sz;
 	hdr->line_info_off = funcs_sz;
 	hdr->line_info_len = lines_sz;
-	hdr->core_relo_off = funcs_sz + lines_sz;;
+	hdr->core_relo_off = funcs_sz + lines_sz;
 	hdr->core_relo_len = core_relos_sz;
 
 	if (funcs_sz) {
-- 
2.25.1

Re: [PATCH -next] libbpf: remove redundant semi-colon

From: Song Liu <song@kernel.org>
Date: 2021-04-01 23:17:59

On Thu, Apr 1, 2021 at 10:58 AM Yang Yingliang [off-list ref] wrote:
Signed-off-by: Yang Yingliang <redacted>
Please add a short commit log.

Thanks,
Song
quoted hunk
---
 tools/lib/bpf/linker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/lib/bpf/linker.c b/tools/lib/bpf/linker.c
index 46b16cbdcda3..4e08bc07e635 100644
--- a/tools/lib/bpf/linker.c
+++ b/tools/lib/bpf/linker.c
@@ -1895,7 +1895,7 @@ static int finalize_btf_ext(struct bpf_linker *linker)
        hdr->func_info_len = funcs_sz;
        hdr->line_info_off = funcs_sz;
        hdr->line_info_len = lines_sz;
-       hdr->core_relo_off = funcs_sz + lines_sz;;
+       hdr->core_relo_off = funcs_sz + lines_sz;
        hdr->core_relo_len = core_relos_sz;

        if (funcs_sz) {
--
2.25.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help