CLEANUP: hlua: Remove obsolete branch in hlua_alloc()

This branch is no longer required, because the `!nsize` case is handled for any
value of `ptr` now.

see 22586524e32f14c44239063088a38ccea8abc9b7
see a5efdff93c36f75345a2a18f18bffee9b602bc7b
This commit is contained in:
Tim Duesterhus 2021-10-23 19:56:40 +02:00 committed by Willy Tarreau
parent e6c04507d8
commit 8aee3030f8

View File

@ -11529,9 +11529,6 @@ static void *hlua_alloc(void *ud, void *ptr, size_t osize, size_t nsize)
struct hlua_mem_allocator *zone = ud; struct hlua_mem_allocator *zone = ud;
size_t limit, old, new; size_t limit, old, new;
if (unlikely(!ptr && !nsize))
return NULL;
/* a limit of ~0 means unlimited and boot complete, so there's no need /* a limit of ~0 means unlimited and boot complete, so there's no need
* for accounting anymore. * for accounting anymore.
*/ */