mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 01:54:44 +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:
@@ -369,6 +369,12 @@ void guest_cpuid(struct vcpu *vcpu,
|
||||
break;
|
||||
|
||||
default:
|
||||
/*
|
||||
* In this switch statement, leaf shall either be 0x01U or 0x0bU
|
||||
* or 0x0dU. All the other cases have been handled properly
|
||||
* before this switch statement.
|
||||
* Gracefully return if prior case clauses have not been met.
|
||||
*/
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user