mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
hv: cpu: remove unnecessary cpu_id valid check
Remove unnecessary cpu_id valid check if the cpu_id comes from get_cpu_id(). Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -123,12 +123,6 @@ int32_t hv_main(uint16_t pcpu_id)
|
||||
pr_info("%s, Starting common entry point for CPU %hu",
|
||||
__func__, pcpu_id);
|
||||
|
||||
if (pcpu_id >= phys_cpu_num) {
|
||||
pr_err("%s, cpu_id %hu out of range %d\n",
|
||||
__func__, pcpu_id, phys_cpu_num);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (pcpu_id != get_cpu_id()) {
|
||||
pr_err("%s, cpu_id %hu mismatch\n", __func__, pcpu_id);
|
||||
return -EINVAL;
|
||||
|
Reference in New Issue
Block a user