mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 15:14:27 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user