From 6dfd541ca880fe25d0e49dcf8882e1f4f61679a9 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 17 Dec 2024 14:26:06 +0100 Subject: [PATCH] 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(). --- src/mux_fcgi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mux_fcgi.c b/src/mux_fcgi.c index 4c2310be4..4adf658b5 100644 --- a/src/mux_fcgi.c +++ b/src/mux_fcgi.c @@ -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)) {