libbpf: Remove redundant non-null checks on obj_elf
authorGaosheng Cui <cuigaosheng1@huawei.com>
Thu, 21 Apr 2022 03:18:03 +0000 (11:18 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 21 Apr 2022 16:56:26 +0000 (09:56 -0700)
commitb71a2ebf74ef509b6b6926c78549e183c3b63947
treed39ff257e0e73b54bdbb44bfbe067b8a8065d63e
parentc14766a8a8f3d6c75bf09ec3b6d9ce4d8217015a
libbpf: Remove redundant non-null checks on obj_elf

Obj_elf is already non-null checked at the function entry, so remove
redundant non-null checks on obj_elf.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220421031803.2283974-1-cuigaosheng1@huawei.com
tools/lib/bpf/libbpf.c