mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-01 19:20:59 +02:00
MINOR: mux_quic: remove superfluous b_size() before b_alloc()
b_alloc() does nothing if a buffer is already allocated. As such, it is not necessary to call b_size() as a check prior to it. Removes its usage in qcc_qstrm_recv() so that the code is similar to other b_alloc() usages.
This commit is contained in:
parent
194bad6aaf
commit
4449323464
@ -113,11 +113,9 @@ int qcc_qstrm_recv(struct qcc *qcc)
|
||||
if (qcc->flags & QC_CF_ERR_CONN)
|
||||
return 0;
|
||||
|
||||
if (!b_size(buf)) {
|
||||
if (!b_alloc(buf, DB_MUX_RX)) {
|
||||
TRACE_ERROR("rx qstrm buf alloc failure", QMUX_EV_QCC_RECV);
|
||||
goto err;
|
||||
}
|
||||
if (!b_alloc(buf, DB_MUX_RX)) {
|
||||
TRACE_ERROR("rx qstrm buf alloc failure", QMUX_EV_QCC_RECV);
|
||||
goto err;
|
||||
}
|
||||
|
||||
do {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user