]> granicus.if.org Git - apache/commitdiff
Remove dead assignment, as pointed out by Chris Wilson <cwilson vigilantsw com>
authorStefan Fritsch <sf@apache.org>
Mon, 20 Jun 2011 19:06:27 +0000 (19:06 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 20 Jun 2011 19:06:27 +0000 (19:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1137748 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/event/event.c

index 03fef9a2fc4112b56dd39a97a1b73ac0b08e2bf3..84deaa7d6ff6fbb14e16e339aefee1ad29bf5c61 100644 (file)
@@ -787,7 +787,6 @@ static int process_socket(apr_thread_t *thd, apr_pool_t * p, apr_socket_t * sock
                           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 *thd, apr_pool_t * p, apr_socket_t * sock
     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 *thd, apr_pool_t * p, apr_socket_t * sock
     else {
         c = cs->c;
         c->sbh = sbh;
-        pt = cs->pfd.client_data;
         c->current_thread = thd;
     }