mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
HV:debug: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:
@@ -28,7 +28,7 @@ static int charout(int cmd, const char *s, int sz, void *hnd)
|
||||
/* fill mode */
|
||||
else {
|
||||
*nchars += sz;
|
||||
while (sz--)
|
||||
while ((sz--) != 0)
|
||||
console_putc(*s);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user