diff options
author | 2024-10-09 22:57:37 -0700 | |
---|---|---|
committer | 2024-10-10 19:15:02 -0700 | |
commit | ba4fb3b3f7d891ba2fb82fe344d5068f87d7481c (patch) | |
tree | 58a6bbd2965961c2fe0c4f3e2d9e04615e65c1b3 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | samples/bpf: Fix a resource leak (diff) | |
download | wireguard-linux-ba4fb3b3f7d891ba2fb82fe344d5068f87d7481c.tar.xz wireguard-linux-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 <zhujun2@cmss.chinamobile.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241010055737.4292-1-zhujun2@cmss.chinamobile.com
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions