mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-07 03:04:49 +00:00
hv: remove an unnecessary code line
This patch is to eliminate a code scan warning. p_elf_header32 was given a value when it was declared, but later it was given the same value again. Just remove the later one. Tracked-On: #7318 Signed-off-by: Zhou, Wu <wu.zhou@intel.com>
This commit is contained in:
parent
dafe07e378
commit
6458a3f474
@ -89,7 +89,6 @@ static void *do_load_elf32(struct acrn_vm *vm)
|
|||||||
void *elf_entry = NULL, *p_elf_bss = NULL;
|
void *elf_entry = NULL, *p_elf_bss = NULL;
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
|
|
||||||
p_elf_header32 = (struct elf32_hdr *)p_elf_img;
|
|
||||||
/* Currently only ET_EXEC is supported */
|
/* Currently only ET_EXEC is supported */
|
||||||
if (p_elf_header32->e_type == ET_EXEC) {
|
if (p_elf_header32->e_type == ET_EXEC) {
|
||||||
p_prg_tbl_head32 = (struct elf32_prog_entry *)(p_elf_img + p_elf_header32->e_phoff);
|
p_prg_tbl_head32 = (struct elf32_prog_entry *)(p_elf_img + p_elf_header32->e_phoff);
|
||||||
|
Loading…
Reference in New Issue
Block a user