]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit532a03989d6202ea9e87b082e8b446a9369ead83
treed39ff257e0e73b54bdbb44bfbe067b8a8065d63e
parentc6843cfea3d2b6d81135148af479ab0b7ba49393
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