mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 15:45:05 +00:00
hv: fix "Else alternative missing in if."
All if . . else if constructs shall be terminated with an else statement. 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:
committed by
ACRN System Integration
parent
7cff124b96
commit
b316bf8a39
@@ -67,6 +67,8 @@ bool handle_dbg_cmd(const char *cmd, int32_t len)
|
||||
uart16550_set_property(true, false, (uint64_t)(cmd+tmp));
|
||||
} else if (i == IDX_SET_VUART) {
|
||||
vuart_set_property(cmd+tmp);
|
||||
} else {
|
||||
/* No other state currently, do nothing */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -64,6 +64,8 @@ static inline int32_t npk_write(const char *value, void *addr, size_t sz)
|
||||
} else if (sz >= 1U) {
|
||||
mmio_write8(*(uint8_t *)value, addr);
|
||||
ret = 1;
|
||||
} else {
|
||||
/* No other state currently, do nothing */
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -398,6 +398,8 @@ static int32_t shell_process_cmd(const char *p_input_line)
|
||||
shell_puts("\r\nError: Invalid parameters.\r\n");
|
||||
} else if (status != 0) {
|
||||
shell_puts("\r\nCommand launch failed.\r\n");
|
||||
} else {
|
||||
/* No other state currently, do nothing */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user