]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
libbpf: Simplify the return expression of bpf_object__init_maps function
authorWang Hai <wanghai38@huawei.com>
Wed, 9 Jun 2021 11:56:51 +0000 (19:56 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 11 Jun 2021 22:30:52 +0000 (15:30 -0700)
commit3b3af91cb6893967bbec30f5c14562d0f7f00c2a
tree8f48fa14b9c91d8dfb5be3ac6a85a04942fb9738
parent380afe7208966ab59e5215c9daab3f6b06193d8c
libbpf: Simplify the return expression of bpf_object__init_maps function

There is no need for special treatment of the 'ret == 0' case.
This patch simplifies the return expression.

Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210609115651.3392580-1-wanghai38@huawei.com
tools/lib/bpf/libbpf.c