libbpf: fix warning that PTR_ERR_OR_ZERO can be used
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Sat, 25 May 2019 09:02:57 +0000 (14:32 +0530)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 28 May 2019 08:56:05 +0000 (10:56 +0200)
commitd98363b510ce9938a19b07fe3c02357d8c65d52a
tree1ab56fb10df2079d4c151f294676e679cffa7533
parent92bd6820f2b11c2decdd92e1f9020e804dbc2ed1
libbpf: fix warning that PTR_ERR_OR_ZERO can be used

Fix below warning reported by coccicheck:

/tools/lib/bpf/libbpf.c:3461:1-3: WARNING: PTR_ERR_OR_ZERO can be used

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/libbpf.c