[master] f5f1dc8 fight ocpd

Nils Goroll nils.goroll at uplex.de
Wed Aug 27 19:32:59 CEST 2014


commit f5f1dc80076eff2348bfbae40faaf9a7faf9af8f
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Aug 27 19:30:51 2014 +0200

    fight ocpd

diff --git a/bin/varnishd/cache/cache_ws.c b/bin/varnishd/cache/cache_ws.c
index 956fef4..3930c4d 100644
--- a/bin/varnishd/cache/cache_ws.c
+++ b/bin/varnishd/cache/cache_ws.c
@@ -204,8 +204,7 @@ WS_Reserve(struct ws *ws, unsigned bytes)
 	assert(ws->r == NULL);
 
 	b2 = PRNDDN(ws->e - ws->f);
-	if ((bytes != 0) &&
-	    (bytes < b2))
+	if (bytes != 0 && bytes < b2)
 		b2 = PRNDUP(bytes);
 
 	xxxassert(ws->f + b2 <= ws->e);



More information about the varnish-commit mailing list