[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210820165511.72890-1-mauricio@kinvolk.io>
Date: Fri, 20 Aug 2021 11:55:11 -0500
From: Mauricio Vásquez <mauricio@...volk.io>
To: netdev@...r.kernel.org, bpf@...r.kernel.org
Cc: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>,
Martin KaFai Lau <kafai@...com>,
Song Liu <songliubraving@...com>, Yonghong Song <yhs@...com>,
John Fastabend <john.fastabend@...il.com>,
KP Singh <kpsingh@...nel.org>,
Mauricio Vásquez <mauriciov@...rosoft.com>
Subject: [PATCH bpf-next] libbpf: remove unused variable
From: Mauricio Vásquez <mauriciov@...rosoft.com>
Fixes: ddc7c3042614 ("libbpf: implement BPF CO-RE offset relocation algorithm")
Signed-off-by: Mauricio Vásquez <mauriciov@...rosoft.com>
---
tools/lib/bpf/relo_core.c | 7 -------
1 file changed, 7 deletions(-)
diff --git tools/lib/bpf/relo_core.c tools/lib/bpf/relo_core.c
index 4016ed492d0c..52d8125b7cbe 100644
--- tools/lib/bpf/relo_core.c
+++ tools/lib/bpf/relo_core.c
@@ -417,13 +417,6 @@ static int bpf_core_match_member(const struct btf *local_btf,
return found;
} else if (strcmp(local_name, targ_name) == 0) {
/* matching named field */
- struct bpf_core_accessor *targ_acc;
-
- targ_acc = &spec->spec[spec->len++];
- targ_acc->type_id = targ_id;
- targ_acc->idx = i;
- targ_acc->name = targ_name;
-
*next_targ_id = m->type;
found = bpf_core_fields_are_compat(local_btf,
local_member->type,
--
2.25.1
Powered by blists - more mailing lists