From c41fcb693f40920cef53b272bade0a699e87f015 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 21 Sep 2008 07:30:56 +0000 Subject: [PATCH] Eliminate a pointless local variable. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3209 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_pool.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); } -- 2.39.5