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:
Shiqing Gao
2018-08-08 10:32:09 +08:00
committed by lijinxia
parent af7943c5e6
commit 4106fadeb3
8 changed files with 97 additions and 0 deletions

View File

@@ -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;
}