mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +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:
@@ -87,6 +87,11 @@ handle_vpic_irqline(struct vm *vm, uint32_t irq, enum irq_mode mode)
|
||||
case IRQ_PULSE:
|
||||
ret = vpic_pulse_irq(vm, irq);
|
||||
default:
|
||||
/*
|
||||
* In this switch statement, mode shall either be IRQ_ASSERT or
|
||||
* IRQ_DEASSERT or IRQ_PULSE.
|
||||
* Gracefully return if prior case clauses have not been met.
|
||||
*/
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -113,6 +118,11 @@ handle_vioapic_irqline(struct vm *vm, uint32_t irq, enum irq_mode mode)
|
||||
ret = vioapic_pulse_irq(vm, irq);
|
||||
break;
|
||||
default:
|
||||
/*
|
||||
* In this switch statement, mode shall either be IRQ_ASSERT or
|
||||
* IRQ_DEASSERT or IRQ_PULSE.
|
||||
* Gracefully return if prior case clauses have not been met.
|
||||
*/
|
||||
break;
|
||||
}
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user