aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-trace.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2024-05-06 17:13:29 -0700
committerMartin KaFai Lau <[email protected]>2024-05-07 16:21:59 -0700
commit8374b56b1df5566d19d645e49da2bf31b660bcfd (patch)
treea2ee3b0a2aa6b786ab10b3836c1f7bcaf09f6739 /drivers/usb/cdns3/cdns3-trace.c
parent93d1c2da15017a443cad812468450b72f43e3bd8 (diff)
libbpf: remove unnecessary struct_ops prog validity check
libbpf ensures that BPF program references set in map->st_ops->progs[i] during open phase are always valid STRUCT_OPS programs. This is done in bpf_object__collect_st_ops_relos(). So there is no need to double-check that in bpf_map__init_kern_struct_ops(). Simplify the code by removing unnecessary check. Also, we avoid using local prog variable to keep code similar to the upcoming fix, which adds similar logic in another part of bpf_map__init_kern_struct_ops(). Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions