[master] 0ce6565 add needless returns

Poul-Henning Kamp phk at FreeBSD.org
Thu Mar 2 19:22:05 CET 2017


commit 0ce656526df0b0e2a93d0a8734663476c3b5ca2d
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Mar 2 18:21:09 2017 +0000

    add needless returns

diff --git a/bin/varnishd/http2/cache_http2_proto.c b/bin/varnishd/http2/cache_http2_proto.c
index 93e22ec..63eeb4e 100644
--- a/bin/varnishd/http2/cache_http2_proto.c
+++ b/bin/varnishd/http2/cache_http2_proto.c
@@ -212,6 +212,7 @@ h2_rx_continuation(struct worker *wrk, struct h2_sess *h2, struct h2_req *r2)
 	(void)h2;
 	(void)r2;
 	INCOMPL();
+	NEEDLESS(return (H2CE_PROTOCOL_ERROR));
 }
 
 /**********************************************************************
@@ -236,6 +237,7 @@ h2_rx_rst_stream(struct worker *wrk, struct h2_sess *h2, struct h2_req *r2)
 	(void)h2;
 	(void)r2;
 	INCOMPL();
+	NEEDLESS(return (H2CE_PROTOCOL_ERROR));
 }
 
 /**********************************************************************



More information about the varnish-commit mailing list