2021-04-01 18:12:58

by Yang Yingliang

[permalink] [raw]
Subject: [PATCH -next] libbpf: remove redundant semi-colon

Signed-off-by: Yang Yingliang <[email protected]>
---
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


2021-04-01 23:18:38

by Song Liu

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

On Thu, Apr 1, 2021 at 10:58 AM Yang Yingliang <[email protected]> wrote:
>
> Signed-off-by: Yang Yingliang <[email protected]>

Please add a short commit log.

Thanks,
Song

> ---
> 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
>