HV: fix expression is not boolean

MISRA-C standard requires the type of result of expression in if/while pattern shall be boolean.

Tracked-On: #861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
This commit is contained in:
Huihuang Shi
2019-06-19 16:20:10 +08:00
committed by wenlingz
parent 5cbda22d29
commit e3ee9cf20e
5 changed files with 22 additions and 20 deletions

View File

@@ -100,7 +100,7 @@ struct acrn_vuart *vuart_console_active(void)
}
}
return (vu && vu->active) ? vu : NULL;
return ((vu != NULL) && vu->active) ? vu : NULL;
}
static void console_timer_callback(__unused void *data)