diff options
author | Sasha Levin <sasha.levin@oracle.com> | 2013-02-07 12:27:39 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-02-14 15:26:03 +1100 |
commit | e3b7187db0c81b51c7ad2ddfe49870b7e8775091 (patch) | |
tree | fdbfd0c9370d39ba1026c19de3dc868deae0610c /tools | |
parent | 52ef2266038f35cfa907b2c9db83841be2ab3aeb (diff) |
epoll: stop comparing pointers with 0 in self-test app
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Reviewed-by: Daniel Hazelton <dshadowwolf@gmail.com>
Cc: "Paton J. Lewis" <palewis@adobe.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/epoll/test_epoll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/epoll/test_epoll.c b/tools/testing/selftests/epoll/test_epoll.c index 4a14a7f084c1..1034ed4cc5b4 100644 --- a/tools/testing/selftests/epoll/test_epoll.c +++ b/tools/testing/selftests/epoll/test_epoll.c @@ -199,8 +199,8 @@ int main(int argc, char **argv) epoll_items = malloc(n_epoll_items * sizeof(struct epoll_item_private)); - if (epoll_set < 0 || epoll_items == 0 || write_thread_data.fds == 0 || - read_thread_data == 0 || read_threads == 0) + if (epoll_set < 0 || !epoll_items || write_thread_data.fds == NULL || + !read_thread_data || !read_threads) goto error; if (sysconf(_SC_NPROCESSORS_ONLN) < 2) { |