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:
Huihuang Shi
2018-06-19 14:06:47 +08:00
committed by lijinxia
parent e3174bb50a
commit fe0314e8c3
5 changed files with 10 additions and 10 deletions

View File

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