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:
Willy Tarreau 2024-12-17 14:26:06 +01:00
parent 143a103696
commit 6dfd541ca8

View File

@ -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)) {