r3209 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sun Sep 21 09:30:56 CEST 2008


Author: phk
Date: 2008-09-21 09:30:56 +0200 (Sun, 21 Sep 2008)
New Revision: 3209

Modified:
   trunk/varnish-cache/bin/varnishd/cache_pool.c
Log:
Eliminate a pointless local variable.



Modified: trunk/varnish-cache/bin/varnishd/cache_pool.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pool.c	2008-09-21 06:49:38 UTC (rev 3208)
+++ trunk/varnish-cache/bin/varnishd/cache_pool.c	2008-09-21 07:30:56 UTC (rev 3209)
@@ -238,7 +238,6 @@
 	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 @@
 			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);
 	}




More information about the varnish-commit mailing list