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

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