mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +00:00
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:
@@ -346,7 +346,7 @@ static bool vuart_write(struct acrn_vm *vm, uint16_t offset_arg,
|
||||
offset -= vu->port_base;
|
||||
target_vu = vu->target_vu;
|
||||
|
||||
if (!(vu->mcr & MCR_LOOPBACK) &&
|
||||
if (((vu->mcr & MCR_LOOPBACK) == 0U) &&
|
||||
(offset == UART16550_THR) && (target_vu != NULL)) {
|
||||
send_to_target(target_vu, value_u8);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user