In stats_scope_ptr(), the validity of blk() was assumed using
ALREADY_CHECKED(blk), but we can now use the cleaner ASSUME_NONNULL().
In addition this simplifies the BUG_ON() check that follows.
struct htx_blk *blk;
struct ist uri;
- blk = htx_get_head_blk(htx);
- BUG_ON(!blk || htx_get_blk_type(blk) != HTX_BLK_REQ_SL);
- ALREADY_CHECKED(blk);
+ blk = ASSUME_NONNULL(htx_get_head_blk(htx));
+ BUG_ON(htx_get_blk_type(blk) != HTX_BLK_REQ_SL);
uri = htx_sl_req_uri(htx_get_blk_ptr(htx, blk));
return uri.ptr + ctx->scope_str;
}