Commit ccc15770 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Eliminate a pointless local variable.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3209 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 5c4b0504
...@@ -238,7 +238,6 @@ wrk_thread(void *priv) ...@@ -238,7 +238,6 @@ wrk_thread(void *priv)
struct worker *w, ww; struct worker *w, ww;
struct wq *qp; struct wq *qp;
unsigned char wlog[params->shm_workspace]; unsigned char wlog[params->shm_workspace];
struct workreq *wrq;
THR_SetName("cache-worker"); THR_SetName("cache-worker");
w = &ww; w = &ww;
...@@ -272,10 +271,9 @@ wrk_thread(void *priv) ...@@ -272,10 +271,9 @@ wrk_thread(void *priv)
break; break;
UNLOCK(&qp->mtx); UNLOCK(&qp->mtx);
AN(w->wrq); AN(w->wrq);
wrq = w->wrq; AN(w->wrq->func);
AN(wrq->func);
w->lastused = NAN; w->lastused = NAN;
wrq->func(w, wrq->priv); w->wrq->func(w, w->wrq->priv);
w->wrq = NULL; w->wrq = NULL;
LOCK(&qp->mtx); LOCK(&qp->mtx);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment