mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +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:
@@ -205,6 +205,11 @@ static void vuart_write(__unused struct vm_io_handler *hdlr,
|
||||
vu->scr = value;
|
||||
break;
|
||||
default:
|
||||
/*
|
||||
* For the offset that is not handled (either a read-only
|
||||
* register or an invalid register), ignore the write to it.
|
||||
* Gracefully return if prior case clauses have not been met.
|
||||
*/
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user