mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-06 09:06:30 +00:00
Originally, vm_get_seg_desc return -EINVAL when "vcpu == NULL" or seg is invalid. But, we don't check the return value actually and there is no chance we get an null-vcpu and invalid seg in current implementation. This patch adds pre-assumptions and makes the function as void. Signed-off-by: Kaige Fu <kaige.fu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>