]> err.no Git - varnish/commitdiff
Eliminate a pointless local variable.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 21 Sep 2008 07:30:56 +0000 (07:30 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 21 Sep 2008 07:30:56 +0000 (07:30 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3209 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_pool.c

index cf1f248985a216298c806de0ae325fe911be9e94..ba68ac765aa5ab23c5c96fb56475063a15ce7675 100644 (file)
@@ -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);
        }