mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 23:57:10 +00:00
HV:header:fix "expression is not Boolean"
MISRA C explicit required expression should be boolean when in branch statements (if,while...). Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -78,7 +78,7 @@ trace_check(int cpu_id, __unused int evid)
|
||||
if (cpu_id >= phy_cpu_num)
|
||||
return false;
|
||||
|
||||
if (!per_cpu(sbuf, cpu_id)[ACRN_TRACE])
|
||||
if (per_cpu(sbuf, cpu_id)[ACRN_TRACE] == NULL)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user