summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conn_accept.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_conn_accept.c')
-rw-r--r--src/nxt_conn_accept.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/nxt_conn_accept.c b/src/nxt_conn_accept.c
index 38b36270..53bbe83e 100644
--- a/src/nxt_conn_accept.c
+++ b/src/nxt_conn_accept.c
@@ -84,10 +84,9 @@ nxt_listen_event(nxt_task_t *task, nxt_listen_socket_t *ls)
static nxt_conn_t *
nxt_conn_accept_alloc(nxt_task_t *task, nxt_listen_event_t *lev)
{
- nxt_mp_t *mp;
- nxt_conn_t *c;
- nxt_event_engine_t *engine;
- nxt_listen_socket_t *ls;
+ nxt_mp_t *mp;
+ nxt_conn_t *c;
+ nxt_event_engine_t *engine;
engine = task->thread->engine;
@@ -106,8 +105,6 @@ nxt_conn_accept_alloc(nxt_task_t *task, nxt_listen_event_t *lev)
c->socket.write_ready = 1;
c->listen = lev;
- ls = lev->listen;
-
c->remote = nxt_sockaddr_cache_alloc(engine, lev);
if (nxt_fast_path(c->remote != NULL)) {
return c;