mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 15:45:05 +00:00
HV: fix violations touched type conversion
ACRN Coding guidelines requires type conversion shall be explicity. Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -79,10 +79,11 @@ static void vuart_console_rx_chars(struct acrn_vuart *vu)
|
||||
*/
|
||||
static void vuart_console_tx_chars(struct acrn_vuart *vu)
|
||||
{
|
||||
char c;
|
||||
char c = vuart_getchar(vu);
|
||||
|
||||
while ((c = vuart_getchar(vu)) != -1) {
|
||||
while(c != -1) {
|
||||
printf("%c", c);
|
||||
c = vuart_getchar(vu);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user