From a4f50c69e48e1e61aa4c81f82bb8aa500cab0c8f Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 17 Dec 2024 14:22:13 +0100 Subject: [PATCH] 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. --- src/hlua.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hlua.c b/src/hlua.c index a83fb758f..5e70e2bc7 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. */