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.
This commit is contained in:
Christopher Faulet 2021-01-29 10:22:28 +01:00
parent 5c25daa170
commit 1faeb4c710
1 changed files with 0 additions and 3 deletions

View File

@ -1741,9 +1741,6 @@ static size_t h1_process_output(struct h1c *h1c, struct buffer *buf, size_t coun
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});