mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 23:57:10 +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:
@@ -733,7 +733,7 @@ static void fault_record_analysis(__unused uint64_t low, uint64_t high)
|
||||
|
||||
/* currently skip PASID related parsing */
|
||||
pr_info("%s, Reason: 0x%x, SID: %x.%x.%x @0x%llx",
|
||||
dma_frcd_up_t(high) ? "Read/Atomic" : "Write",
|
||||
(dma_frcd_up_t(high) != 0U) ? "Read/Atomic" : "Write",
|
||||
dma_frcd_up_fr(high),
|
||||
dma_frcd_up_sid(high) >> 8,
|
||||
(dma_frcd_up_sid(high) >> 3) & 0x1fUL,
|
||||
|
||||
Reference in New Issue
Block a user