From e71d1fd257717987239380f52c25026e634c6a81 Mon Sep 17 00:00:00 2001 From: sin Date: Sat, 28 Feb 2015 20:49:00 +0000 Subject: Remove redundant checks We can never have an array of more than SIZE_MAX/2/sizeof(gid_t) gid_t's. --- include/poll.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/poll.h') diff --git a/include/poll.h b/include/poll.h index 83801bd..4eb2713 100644 --- a/include/poll.h +++ b/include/poll.h @@ -11,7 +11,7 @@ __fortify_poll(struct pollfd *fds, nfds_t nfds, int timeout) { __typeof__(sizeof 0) bos = __builtin_object_size(fds, 0); - if (bos != -1 && nfds > bos / sizeof(struct pollfd)) + if (nfds > bos / sizeof(struct pollfd)) __builtin_trap(); return poll(fds, nfds, timeout); } -- cgit v1.3