diff options
author | Mauricio Vasquez B <mauricio.vasquez@polito.it> | 2018-09-03 19:01:59 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-09-06 22:34:08 -0700 |
commit | f5bd3948eb07e76fcd73d0b8ab7b3265be226038 (patch) | |
tree | 9ad9a009961dc85c1ac826f34f04b3a729dd2d1e /tools/include | |
parent | ad1242d8a063ceb8c6e1b9c1a63b73ec94fa0295 (diff) |
selftests/bpf/test_progs: do not check errno == 0
The errno man page states: "The value in errno is significant only when
the return value of the call indicated an error..." then it is not correct
to check it, it could be different than zero even if the function
succeeded.
It causes some false positives if errno is set by a previous function.
Signed-off-by: Mauricio Vasquez B <mauricio.vasquez@polito.it>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/include')
0 files changed, 0 insertions, 0 deletions