mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-06 08:04:55 +00:00
hv: treewide: fix 'Switch empty default has no comment'
This patch add some comments after the default and before the break in the switch statement based on MISRA-C requirement. Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -525,6 +525,11 @@ static void ptdev_intr_handle_irq(struct vm *vm,
|
||||
break;
|
||||
}
|
||||
default:
|
||||
/*
|
||||
* In this switch statement, intx->vpin_src shall either be
|
||||
* PTDEV_VPIN_IOAPIC or PTDEV_VPIN_PIC.
|
||||
* Gracefully return if prior case clauses have not been met.
|
||||
*/
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -598,6 +603,12 @@ void ptdev_intx_ack(struct vm *vm, uint8_t virt_pin,
|
||||
case PTDEV_VPIN_PIC:
|
||||
vpic_deassert_irq(vm, virt_pin);
|
||||
default:
|
||||
/*
|
||||
* In this switch statement,
|
||||
* entry->ptdev_intr_info.intx.vpin_src shall either be
|
||||
* PTDEV_VPIN_IOAPIC or PTDEV_VPIN_PIC.
|
||||
* Gracefully return if prior case clauses have not been met.
|
||||
*/
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user