From: phk Date: Sun, 21 Sep 2008 07:30:56 +0000 (+0000) Subject: Eliminate a pointless local variable. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c41fcb693f40920cef53b272bade0a699e87f015;p=varnish Eliminate a pointless local variable. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3209 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_pool.c b/varnish-cache/bin/varnishd/cache_pool.c index cf1f2489..ba68ac76 100644 --- a/varnish-cache/bin/varnishd/cache_pool.c +++ b/varnish-cache/bin/varnishd/cache_pool.c @@ -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); }