llext: remove redundant initialisation

a new llext object is completely initialised with zeros after
allocation, no need to additionally set members of an embedded into
it array to NULL.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2023-11-20 15:21:46 +01:00 committed by Anas Nashif
commit b5506feed5

View file

@ -921,10 +921,6 @@ int llext_load(struct llext_loader *ldr, const char *name, struct llext **ext,
}
memset(*ext, 0, sizeof(struct llext));
for (int i = 0; i < LLEXT_MEM_COUNT; i++) {
(*ext)->mem[i] = NULL;
}
ldr->hdr = ehdr;
ret = do_llext_load(ldr, *ext, ldr_parm);
if (ret < 0) {