[master] 0bd7b61 Tidy up: No need for _SAFE

Dag Haavi Finstad daghf at varnish-software.com
Wed Mar 14 11:48:09 UTC 2018


commit 0bd7b61bab655d64b734ef6918a9b08e65146806
Author: Dag Haavi Finstad <daghf at varnish-software.com>
Date:   Wed Mar 14 12:46:38 2018 +0100

    Tidy up: No need for _SAFE

diff --git a/bin/varnishd/http2/cache_http2_proto.c b/bin/varnishd/http2/cache_http2_proto.c
index d4ae479..39d97e6 100644
--- a/bin/varnishd/http2/cache_http2_proto.c
+++ b/bin/varnishd/http2/cache_http2_proto.c
@@ -857,7 +857,7 @@ static h2_error
 h2_procframe(struct worker *wrk, struct h2_sess *h2,
     h2_frame h2f)
 {
-	struct h2_req *r2 = NULL, *r22;
+	struct h2_req *r2 = NULL;
 	h2_error h2e;
 
 	ASSERT_RXTHR(h2);
@@ -881,10 +881,9 @@ h2_procframe(struct worker *wrk, struct h2_sess *h2,
 		return (H2CE_PROTOCOL_ERROR);
 	}
 
-	VTAILQ_FOREACH_SAFE(r2, &h2->streams, list, r22) {
+	VTAILQ_FOREACH(r2, &h2->streams, list)
 		if (r2->stream == h2->rxf_stream)
 			break;
-	}
 
 	if (r2 == NULL && h2f->act_sidle == 0) {
 		if (h2->rxf_stream <= h2->highest_stream)


More information about the varnish-commit mailing list