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.
This commit is contained in:
Willy Tarreau 2024-12-17 14:22:13 +01:00
parent 29b2c5d4d4
commit a4f50c69e4

View File

@ -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. */