From 870b962382c2c207e04bd799c19a98ee68b2d441 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Sun, 10 Aug 2014 17:44:46 +0400 Subject: [PATCH] Events: removed unused variable in ngx_poll_process_events(). --- src/event/modules/ngx_poll_module.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/event/modules/ngx_poll_module.c b/src/event/modules/ngx_poll_module.c index 441eb7e84..9db6b6c4d 100644 --- a/src/event/modules/ngx_poll_module.c +++ b/src/event/modules/ngx_poll_module.c @@ -240,7 +240,6 @@ ngx_poll_process_events(ngx_cycle_t *cycle, ngx_msec_t timer, ngx_uint_t flags) { int ready, revents; ngx_err_t err; - ngx_int_t nready; ngx_uint_t i, found, level; ngx_event_t *ev, **queue; ngx_connection_t *c; @@ -300,8 +299,6 @@ ngx_poll_process_events(ngx_cycle_t *cycle, ngx_msec_t timer, ngx_uint_t flags) ngx_mutex_lock(ngx_posted_events_mutex); - nready = 0; - for (i = 0; i < nevents && ready; i++) { revents = event_list[i].revents; @@ -414,7 +411,7 @@ ngx_poll_process_events(ngx_cycle_t *cycle, ngx_msec_t timer, ngx_uint_t flags) ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, "poll ready != events"); } - return nready; + return NGX_OK; }