mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-07 20:00:13 +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:
@@ -114,10 +114,6 @@ static int request_timer_irq(uint16_t pcpu_id,
|
||||
{
|
||||
struct dev_handler_node *node = NULL;
|
||||
|
||||
if (pcpu_id >= phys_cpu_num) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (per_cpu(timer_node, pcpu_id) != NULL) {
|
||||
pr_err("CPU%d timer isr already added", pcpu_id);
|
||||
unregister_handler_common(per_cpu(timer_node, pcpu_id));
|
||||
|
Reference in New Issue
Block a user