mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-22 13:37:10 +00:00
hv: fix clang analyzer deadcode
remove the dead code since the variable is never used. Tracked-On: #6776 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
parent
d29a6e08b4
commit
83c0a97fb1
@ -787,7 +787,6 @@ static int32_t emulate_mov(struct acrn_vcpu *vcpu, const struct instr_emul_vie *
|
||||
* 88/r: mov r/m8, r8
|
||||
* REX + 88/r: mov r/m8, r8 (%ah, %ch, %dh, %bh not available)
|
||||
*/
|
||||
size = 1U; /* override for byte operation */
|
||||
byte = vie_read_bytereg(vcpu, vie);
|
||||
vie_mmio_write(vcpu, byte);
|
||||
break;
|
||||
@ -810,7 +809,6 @@ static int32_t emulate_mov(struct acrn_vcpu *vcpu, const struct instr_emul_vie *
|
||||
* 8A/r: mov r8, r/m8
|
||||
* REX + 8A/r: mov r8, r/m8
|
||||
*/
|
||||
size = 1U; /* override for byte operation */
|
||||
vie_mmio_read(vcpu, &val);
|
||||
vie_write_bytereg(vcpu, vie, (uint8_t)val);
|
||||
break;
|
||||
@ -853,7 +851,6 @@ static int32_t emulate_mov(struct acrn_vcpu *vcpu, const struct instr_emul_vie *
|
||||
* C6/0 mov r/m8, imm8
|
||||
* REX + C6/0 mov r/m8, imm8
|
||||
*/
|
||||
size = 1U; /* override for byte operation */
|
||||
vie_mmio_write(vcpu, (uint64_t)vie->immediate);
|
||||
break;
|
||||
case 0xC7U:
|
||||
|
@ -309,7 +309,7 @@ void create_prelaunched_vm_e820(struct acrn_vm *vm)
|
||||
|
||||
/* check whether need an entry for remaining hpa2 */
|
||||
if (remaining_hpa2_size > 0UL) {
|
||||
gpa_start = add_ram_entry((vm->e820_entries + entry_idx), gpa_start, remaining_hpa2_size);
|
||||
(void)add_ram_entry((vm->e820_entries + entry_idx), gpa_start, remaining_hpa2_size);
|
||||
entry_idx++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user