]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: stats: use ASSUME_NONNULL() to indicate that the first block exists
authorWilly Tarreau <w@1wt.eu>
Tue, 17 Dec 2024 13:31:08 +0000 (14:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Dec 2024 16:47:57 +0000 (17:47 +0100)
commit1f93622779c8d2cc094134989b53431c874e1f0d
treef2527ca5db6dbca9a14150de9ade6d11dfb142f1
parent6dfd541ca880fe25d0e49dcf8882e1f4f61679a9
CLEANUP: stats: use ASSUME_NONNULL() to indicate that the first block exists

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.
src/stats.c