diff options
author | Wang Hai <wanghai38@huawei.com> | 2021-06-09 14:56:51 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-06-12 01:30:52 +0300 |
commit | 3b3af91cb6893967bbec30f5c14562d0f7f00c2a (patch) | |
tree | 8f48fa14b9c91d8dfb5be3ac6a85a04942fb9738 /tools/bpf/bpftool/main.c | |
parent | 380afe7208966ab59e5215c9daab3f6b06193d8c (diff) | |
download | linux-3b3af91cb6893967bbec30f5c14562d0f7f00c2a.tar.xz |
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
Diffstat (limited to 'tools/bpf/bpftool/main.c')
0 files changed, 0 insertions, 0 deletions