From: Willy Tarreau Date: Tue, 17 Dec 2024 13:22:13 +0000 (+0100) Subject: CLEANUP: hlua: use ASSUME_NONNULL() instead of ALREADY_CHECKED() X-Git-Tag: v3.2-dev2~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a4f50c69e48e1e61aa4c81f82bb8aa500cab0c8f;p=thirdparty%2Fhaproxy.git CLEANUP: hlua: use ASSUME_NONNULL() instead of ALREADY_CHECKED() The purpose of the test in hlua_applet_tcp_new() was precisely to declare non-nullity. Let's just do it using ASSUME_NONNULL() now. --- diff --git a/src/hlua.c b/src/hlua.c index a83fb758f8..5e70e2bc7e 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -5064,10 +5064,9 @@ __LJMP static struct hlua_appctx *hlua_checkapplet_tcp(lua_State *L, int ud) static int hlua_applet_tcp_new(lua_State *L, struct appctx *ctx) { struct hlua_appctx *luactx; - struct stream *s = appctx_strm(ctx); + struct stream *s = ASSUME_NONNULL(appctx_strm(ctx)); struct proxy *p; - ALREADY_CHECKED(s); p = s->be; /* Check stack size. */