mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 04:02:05 +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
|
else
|
||||||
s += console_write(s, sz);
|
s += console_write(s, sz);
|
||||||
|
|
||||||
return (*nchars += (s - p));
|
*nchars += (s - p);
|
||||||
|
return *nchars;
|
||||||
}
|
}
|
||||||
/* fill mode */
|
/* fill mode */
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user