You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2011/06/20 21:06:28 UTC

svn commit: r1137748 - /httpd/httpd/trunk/server/mpm/event/event.c

Author: sf
Date: Mon Jun 20 19:06:27 2011
New Revision: 1137748

URL: http://svn.apache.org/viewvc?rev=1137748&view=rev
Log:
Remove dead assignment, as pointed out by Chris Wilson <cwilson vigilantsw com>

Modified:
    httpd/httpd/trunk/server/mpm/event/event.c

Modified: httpd/httpd/trunk/server/mpm/event/event.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/event/event.c?rev=1137748&r1=1137747&r2=1137748&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/event/event.c (original)
+++ httpd/httpd/trunk/server/mpm/event/event.c Mon Jun 20 19:06:27 2011
@@ -787,7 +787,6 @@ static int process_socket(apr_thread_t *
                           int my_thread_num)
 {
     conn_rec *c;
-    listener_poll_type *pt;
     long conn_id = ID_FROM_CHILD_THREAD(my_child_num, my_thread_num);
     int rc;
     ap_sb_handle_t *sbh;
@@ -795,11 +794,8 @@ static int process_socket(apr_thread_t *
     ap_create_sb_handle(&sbh, p, my_child_num, my_thread_num);
 
     if (cs == NULL) {           /* This is a new connection */
-
+        listener_poll_type *pt = apr_pcalloc(p, sizeof(*pt));
         cs = apr_pcalloc(p, sizeof(conn_state_t));
-
-        pt = apr_pcalloc(p, sizeof(*pt));
-
         cs->bucket_alloc = apr_bucket_alloc_create(p);
         c = ap_run_create_connection(p, ap_server_conf, sock,
                                      conn_id, sbh, cs->bucket_alloc);
@@ -845,7 +841,6 @@ static int process_socket(apr_thread_t *
     else {
         c = cs->c;
         c->sbh = sbh;
-        pt = cs->pfd.client_data;
         c->current_thread = thd;
     }