aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.c
diff options
context:
space:
mode:
authorZhu Jun <[email protected]>2024-10-10 05:57:37 +0000
committerAndrii Nakryiko <[email protected]>2024-10-11 02:15:02 +0000
commitba4fb3b3f7d891ba2fb82fe344d5068f87d7481c (patch)
tree58a6bbd2965961c2fe0c4f3e2d9e04615e65c1b3 /tools/lib/bpf/libbpf.c
parentsamples/bpf: Fix a resource leak (diff)
downloadkernel-ba4fb3b3f7d891ba2fb82fe344d5068f87d7481c.tar.gz
kernel-ba4fb3b3f7d891ba2fb82fe344d5068f87d7481c.zip
selftests/bpf: Removed redundant fd after close in bpf_prog_load_log_buf
Removed unnecessary `fd = -1` assignments after closing file descriptors. because it will be assigned by the function bpf_prog_load().This improves code readability and removes redundant operations. Signed-off-by: Zhu Jun <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions