mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 23:57:10 +00:00
HV:fix simple violations
Fix the violations not touched the logical. 1.Function return value not checked. 2.Logical conjuctions need brackets. 3.No brackets to then/else. 4.Type conversion without cast. Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
This commit is contained in:
@@ -402,7 +402,7 @@ static struct ptirq_remapping_info *add_intx_remapping(struct acrn_vm *vm, uint3
|
||||
entry_is_updated = false;
|
||||
}
|
||||
|
||||
if (entry != NULL && entry_is_updated) {
|
||||
if ((entry != NULL) && entry_is_updated) {
|
||||
if (pic_pin) {
|
||||
vm->arch_vm.vpic.vpin_to_pt_entry[virt_pin] = entry;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user