[4.1] b68360d Polish, remove a break

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Fri Sep 4 15:54:55 CEST 2015


commit b68360d4ff36a146e1a3103aa162509081f42d77
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Mon Aug 17 12:11:34 2015 +0200

    Polish, remove a break

diff --git a/bin/varnishd/cache/cache_vcl.c b/bin/varnishd/cache/cache_vcl.c
index 9c7ee4a..2b3c5d2 100644
--- a/bin/varnishd/cache/cache_vcl.c
+++ b/bin/varnishd/cache/cache_vcl.c
@@ -396,12 +396,10 @@ vcl_set_state(struct vcl *vcl, const char *state)
 
 	switch(state[0]) {
 	case '0':
-		if (vcl->temp == vcl_temp_cold)
-			break;
-		if (vcl->temp == vcl_temp_init) {
+		if (vcl->temp == vcl_temp_init)
 			vcl->temp = vcl_temp_cold;
+		if (vcl->temp == vcl_temp_cold)
 			break;
-		}
 		if (vcl->busy == 0) {
 			vcl->temp = vcl_temp_cold;
 			(void)vcl->conf->event_vcl(&ctx, VCL_EVENT_COLD);



More information about the varnish-commit mailing list