From: Sasha Levin Date: Thu, 7 Feb 2013 01:27:39 +0000 (+1100) Subject: epoll: stop comparing pointers with 0 in self-test app X-Git-Tag: next-20130218~1^2~226 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=388523cac667acefdf6d4032607ddf7cc3bb89cb;p=karo-tx-linux.git epoll: stop comparing pointers with 0 in self-test app Signed-off-by: Sasha Levin Reviewed-by: Daniel Hazelton Cc: "Paton J. Lewis" Signed-off-by: Andrew Morton --- 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) {