mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
xen: arm: drop redundant extra call to vgic_reserve_virq
This is only needed if we are giving the IRQ to dom0 (as opposed to setting it up for passthrough due to xen,passthrough property). There is already a call to vgic_reserve_virq inside the if ( need_mapping ), so drop this one. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Reviewed-by: Julien Grall <julien.grall@citrix.com>
This commit is contained in:
1 parent
f9d08f49dc
commit
eed5e395e0
1 file changed
-6
@@ -1024,12 +1024,6 @@ static int handle_device(struct domain *d, struct dt_device_node *dev)
|
||||
irq = res;
|
||||
|
||||
DPRINT("irq %u = %u\n", i, irq);
|
||||
/*
|
||||
* Checking the return of vgic_reserve_virq is not
|
||||
* necessary. It should not fail except when we try to map
|
||||
* the IRQ twice. This can legitimately happen if the IRQ is shared
|
||||
*/
|
||||
vgic_reserve_virq(d, irq);
|
||||
|
||||
res = irq_permit_access(d, irq);
|
||||
if ( res )
|
||||
|
||||