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:
@@ -876,8 +876,8 @@ static int32_t shell_to_vm_console(int32_t argc, char **argv)
|
||||
struct acrn_vm *vm;
|
||||
struct acrn_vuart *vu;
|
||||
|
||||
if (argc == 2U) {
|
||||
vm_id = sanitize_vmid(strtol_deci(argv[1]));
|
||||
if (argc == 2) {
|
||||
vm_id = sanitize_vmid((uint16_t)strtol_deci(argv[1]));
|
||||
}
|
||||
|
||||
/* Get the virtual device node */
|
||||
|
||||
Reference in New Issue
Block a user