MINOR: mux-h1: Remove first useless test on count in h1_process_output()
h1_process_output() function is never called with no data to send (count ==
0). Thus, the first test on count, at the beginning of the function is
useless and may be removed. This way, by reading the code, it is obvious the
<chn_htx> variable is always defined.
This patch should fix the issue #1085.
diff --git a/src/mux_h1.c b/src/mux_h1.c
index 0a33427..3837f7a 100644
--- a/src/mux_h1.c
+++ b/src/mux_h1.c
@@ -1741,9 +1741,6 @@
int last_data = 0;
int ws_key_found = 0;
- if (!count)
- goto end;
-
chn_htx = htxbuf(buf);
TRACE_ENTER(H1_EV_TX_DATA, h1c->conn, h1s, chn_htx, (size_t[]){count});