mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
hv: treewide: fix 'Expression is not Boolean'
MISRA-C requires that the controlling expression of an if statement or an iteration-statement shall be Boolean type. Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
for (idx = 0U, vcpu = vm->hw.vcpu_array[idx]; \
|
||||
idx < vm->hw.num_vcpus; \
|
||||
idx++, vcpu = vm->hw.vcpu_array[idx]) \
|
||||
if (vcpu)
|
||||
if (vcpu != NULL)
|
||||
|
||||
/* the index is matched with emulated msrs array*/
|
||||
#define IDX_TSC_DEADLINE 0U
|
||||
|
Reference in New Issue
Block a user