[nginx] Events: removed unused variable in ngx_poll_process_even...

Maxim Dounin mdounin at mdounin.ru
Tue Aug 12 00:45:03 UTC 2014


details:   http://hg.nginx.org/nginx/rev/92490a725fef
branches:  
changeset: 5804:92490a725fef
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Sun Aug 10 17:44:46 2014 +0400
description:
Events: removed unused variable in ngx_poll_process_events().

diffstat:

 src/event/modules/ngx_poll_module.c |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (29 lines):

diff --git a/src/event/modules/ngx_poll_module.c b/src/event/modules/ngx_poll_module.c
--- 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 *cyc
 {
     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 *cyc
 
     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 *cyc
         ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, "poll ready != events");
     }
 
-    return nready;
+    return NGX_OK;
 }
 
 



More information about the nginx-devel mailing list