Events: removed unused variable in ngx_poll_process_events().
This commit is contained in:
parent
bc85963789
commit
1bcc9884a9
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue