BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next] libbpf: Remove duplicate assignments
@ 2021-11-28 19:33 Mehrdad Arshad Rad
  0 siblings, 0 replies; only message in thread
From: Mehrdad Arshad Rad @ 2021-11-28 19:33 UTC (permalink / raw)
  To: bpf; +Cc: Mehrdad Arshad Rad

There is a same action when load_attr.attach_btf_id is initialized.

Signed-off-by: Mehrdad Arshad Rad <arshad.rad@gmail.com>
---
 tools/lib/bpf/libbpf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
index 672671879b21..339680d2fea9 100644
--- a/tools/lib/bpf/libbpf.c
+++ b/tools/lib/bpf/libbpf.c
@@ -6475,7 +6475,6 @@ static int bpf_object_load_prog_instance(struct bpf_object *obj, struct bpf_prog
 	load_attr.attach_btf_id = prog->attach_btf_id;
 	load_attr.attach_prog_fd = prog->attach_prog_fd;
 	load_attr.attach_btf_obj_fd = prog->attach_btf_obj_fd;
-	load_attr.attach_btf_id = prog->attach_btf_id;
 	load_attr.kern_version = kern_version;
 	load_attr.prog_ifindex = prog->prog_ifindex;
 
-- 
2.33.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-28 19:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-28 19:33 [PATCH bpf-next] libbpf: Remove duplicate assignments Mehrdad Arshad Rad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox