llext: (cosmetic) remove an unused variable
op_code in llext_link() is unused, remove it. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
60aef84cad
commit
db43d35f61
1 changed files with 1 additions and 6 deletions
|
@ -517,7 +517,7 @@ static int llext_link(struct llext_loader *ldr, struct llext *ext)
|
|||
rel.r_offset, name, ELF_ST_TYPE(sym.st_info),
|
||||
ELF_ST_BIND(sym.st_info), sym.st_shndx);
|
||||
|
||||
uintptr_t link_addr, op_loc, op_code;
|
||||
uintptr_t link_addr, op_loc;
|
||||
|
||||
op_loc = loc + rel.r_offset;
|
||||
|
||||
|
@ -530,11 +530,6 @@ static int llext_link(struct llext_loader *ldr, struct llext *ext)
|
|||
"symbol table %s, offset %d, link section %d",
|
||||
name, rel.r_offset, shdr.sh_link);
|
||||
return -ENODATA;
|
||||
} else {
|
||||
op_code = (uintptr_t)(loc + rel.r_offset);
|
||||
|
||||
LOG_INF("found symbol %s at 0x%lx, updating op code 0x%lx",
|
||||
name, link_addr, op_code);
|
||||
}
|
||||
} else if (ELF_ST_TYPE(sym.st_info) == STT_SECTION) {
|
||||
/* Current relocation location holds an offset into the section */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue