From ade72c2b3a193aad36d0830cc2c90495ce7cd6b7 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Wed, 27 Sep 2023 17:30:59 +0200 Subject: [PATCH] llext: remove a superfluous variable initialisation ret in llext_load() is always assigned before use, remove its redundant initialisation. Signed-off-by: Guennadi Liakhovetski --- subsys/llext/llext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/llext/llext.c b/subsys/llext/llext.c index 9e3cbd79990..83f05f121c5 100644 --- a/subsys/llext/llext.c +++ b/subsys/llext/llext.c @@ -635,7 +635,7 @@ out: int llext_load(struct llext_loader *ldr, const char *name, struct llext **ext) { - int ret = 0; + int ret; elf_ehdr_t ehdr; ret = llext_seek(ldr, 0);