mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-21 13:02:55 +00:00
CLEANUP: mux-fcgi: use ASSUME_NONNULL() to indicate that the first block exists
In fcgi_snd_buf(), this was previously achieved using ALREADY_CHECKED(blk), but we can now fold it into the cleaner ASSUME_NONNULL().
This commit is contained in:
parent
143a103696
commit
6dfd541ca8
@ -3994,8 +3994,7 @@ static size_t fcgi_snd_buf(struct stconn *sc, struct buffer *buf, size_t count,
|
||||
|
||||
while (fstrm->state < FCGI_SS_HLOC && !(fstrm->flags & FCGI_SF_BLK_ANY) &&
|
||||
count && !htx_is_empty(htx)) {
|
||||
blk = htx_get_head_blk(htx);
|
||||
ALREADY_CHECKED(blk);
|
||||
blk = ASSUME_NONNULL(htx_get_head_blk(htx));
|
||||
bsize = htx_get_blksz(blk);
|
||||
|
||||
switch (htx_get_blk_type(blk)) {
|
||||
|
Loading…
Reference in New Issue
Block a user