|
@@ -4124,7 +4124,7 @@ static int irq_remapping_alloc(struct irq_domain *domain, unsigned int virq,
|
|
struct amd_ir_data *data = NULL;
|
|
struct amd_ir_data *data = NULL;
|
|
struct irq_cfg *cfg;
|
|
struct irq_cfg *cfg;
|
|
int i, ret, devid;
|
|
int i, ret, devid;
|
|
- int index = -1;
|
|
|
|
|
|
+ int index;
|
|
|
|
|
|
if (!info)
|
|
if (!info)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
@@ -4166,7 +4166,7 @@ static int irq_remapping_alloc(struct irq_domain *domain, unsigned int virq,
|
|
WARN_ON(table->min_index != 32);
|
|
WARN_ON(table->min_index != 32);
|
|
index = info->ioapic_pin;
|
|
index = info->ioapic_pin;
|
|
} else {
|
|
} else {
|
|
- ret = -ENOMEM;
|
|
|
|
|
|
+ index = -ENOMEM;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
bool align = (info->type == X86_IRQ_ALLOC_TYPE_MSI);
|
|
bool align = (info->type == X86_IRQ_ALLOC_TYPE_MSI);
|