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:
parent
7af6dea799
commit
b5506feed5
1 changed files with 0 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue