mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-18 19:57:31 +00:00
HV: Do not return expression contains subexpression
Operation should be done outside return expression. Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
parent
eb7cf14bcf
commit
cb064b1133
@ -23,7 +23,8 @@ static int charout(int cmd, const char *s, int sz, void *hnd)
|
||||
else
|
||||
s += console_write(s, sz);
|
||||
|
||||
return (*nchars += (s - p));
|
||||
*nchars += (s - p);
|
||||
return *nchars;
|
||||
}
|
||||
/* fill mode */
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user