diff options
| author | Zhu Jun <[email protected]> | 2024-10-10 05:57:37 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2024-10-11 02:15:02 +0000 |
| commit | ba4fb3b3f7d891ba2fb82fe344d5068f87d7481c (patch) | |
| tree | 58a6bbd2965961c2fe0c4f3e2d9e04615e65c1b3 /tools/lib/bpf/libbpf.c | |
| parent | samples/bpf: Fix a resource leak (diff) | |
| download | kernel-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
