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)
struct worker *w, ww;
struct wq *qp;
unsigned char wlog[params->shm_workspace];
struct workreq *wrq;
THR_SetName("cache-worker");
w = &ww;
......@@ -272,10 +271,9 @@ wrk_thread(void *priv)
break;
UNLOCK(&qp->mtx);
AN(w->wrq);
wrq = w->wrq;
AN(wrq->func);
AN(w->wrq->func);
w->lastused = NAN;
wrq->func(w, wrq->priv);
w->wrq->func(w, w->wrq->priv);
w->wrq = NULL;
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