Events: removed unused variable in ngx_poll_process_events().

This commit is contained in:
Maxim Dounin 2014-08-10 17:44:46 +04:00
parent 3c0c66c5d8
commit 870b962382

View File

@ -240,7 +240,6 @@ ngx_poll_process_events(ngx_cycle_t *cycle, ngx_msec_t timer, ngx_uint_t flags)
{ {
int ready, revents; int ready, revents;
ngx_err_t err; ngx_err_t err;
ngx_int_t nready;
ngx_uint_t i, found, level; ngx_uint_t i, found, level;
ngx_event_t *ev, **queue; ngx_event_t *ev, **queue;
ngx_connection_t *c; 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); ngx_mutex_lock(ngx_posted_events_mutex);
nready = 0;
for (i = 0; i < nevents && ready; i++) { for (i = 0; i < nevents && ready; i++) {
revents = event_list[i].revents; 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"); ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, "poll ready != events");
} }
return nready; return NGX_OK;
} }