mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
HV:fix 'missing for discarded return value' violations
Return value should be checked,fix it by add
"void" when the function return value is not used.
V1->V2:
replace printf with pr_warn.
V2->V3:
change the commit to make read easily.
Tracked-On:#861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -242,8 +242,7 @@ int32_t hcall_reset_vm(uint16_t vmid)
|
||||
return -1;
|
||||
}
|
||||
|
||||
reset_vm(target_vm);
|
||||
return 0;
|
||||
return reset_vm(target_vm);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -905,7 +904,7 @@ int32_t hcall_setup_hv_npk_log(struct vm *vm, uint64_t param)
|
||||
{
|
||||
struct hv_npk_log_param npk_param;
|
||||
|
||||
memset((void *)&npk_param, 0U, sizeof(npk_param));
|
||||
(void)memset((void *)&npk_param, 0U, sizeof(npk_param));
|
||||
|
||||
if (copy_from_gpa(vm, &npk_param, param, sizeof(npk_param)) != 0) {
|
||||
pr_err("%s: Unable copy param from vm\n", __func__);
|
||||
|
||||
Reference in New Issue
Block a user