[PATCH bpf-next] libbpf: remove unused variable
From: Mauricio Vásquez <hidden>
Date: 2021-08-20 16:55:18
From: Mauricio Vásquez <redacted>
Fixes: ddc7c3042614 ("libbpf: implement BPF CO-RE offset relocation algorithm")
Signed-off-by: Mauricio Vásquez <redacted>
---
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