[3.0] e700b07 Silence a Flexelint warning
Tollef Fog Heen
tfheen at varnish-cache.org
Mon Apr 16 10:20:36 CEST 2012
commit e700b07f5c1073d274fdbe6c7c696a074888e4f3
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Sun Nov 13 10:05:39 2011 +0000
Silence a Flexelint warning
diff --git a/bin/varnishd/storage_file.c b/bin/varnishd/storage_file.c
index 45dfac4..21de929 100644
--- a/bin/varnishd/storage_file.c
+++ b/bin/varnishd/storage_file.c
@@ -232,7 +232,8 @@ alloc_smf(struct smf_sc *sc, size_t bytes)
b = bytes / sc->pagesize;
if (b >= NBUCKET)
b = NBUCKET - 1;
- for (sp = NULL; b < NBUCKET - 1; b++) {
+ sp = NULL;
+ for (; b < NBUCKET - 1; b++) {
sp = VTAILQ_FIRST(&sc->free[b]);
if (sp != NULL)
break;
More information about the varnish-commit
mailing list