mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 09:07:02 +02:00
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:
parent
29b2c5d4d4
commit
a4f50c69e4
@ -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)
|
static int hlua_applet_tcp_new(lua_State *L, struct appctx *ctx)
|
||||||
{
|
{
|
||||||
struct hlua_appctx *luactx;
|
struct hlua_appctx *luactx;
|
||||||
struct stream *s = appctx_strm(ctx);
|
struct stream *s = ASSUME_NONNULL(appctx_strm(ctx));
|
||||||
struct proxy *p;
|
struct proxy *p;
|
||||||
|
|
||||||
ALREADY_CHECKED(s);
|
|
||||||
p = s->be;
|
p = s->be;
|
||||||
|
|
||||||
/* Check stack size. */
|
/* Check stack size. */
|
||||||
|
Loading…
Reference in New Issue
Block a user