diff options
author | Mehrdad Arshad Rad <arshad.rad@gmail.com> | 2021-11-28 11:33:37 -0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-11-30 15:33:57 +0100 |
commit | c291d0a4d169811898d723cfa5f1aa1fc60e607c (patch) | |
tree | ecbfb140942ba2ef6b946b0092c01a372b2153e9 /tools | |
parent | 43174f0d4597325cb91f1f1f55263eb6e6101036 (diff) | |
download | linux-c291d0a4d169811898d723cfa5f1aa1fc60e607c.tar.bz2 |
libbpf: Remove duplicate assignments
There is a same action when load_attr.attach_btf_id is initialized.
Signed-off-by: Mehrdad Arshad Rad <arshad.rad@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20211128193337.10628-1-arshad.rad@gmail.com
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lib/bpf/libbpf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index b59fede08ba7..5a2f5a6ae2f9 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -6559,7 +6559,6 @@ static int bpf_object_load_prog_instance(struct bpf_object *obj, struct bpf_prog load_attr.expected_attach_type = prog->expected_attach_type; if (kernel_supports(obj, FEAT_PROG_NAME)) prog_name = prog->name; - 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; |