]> Git Repo - J-linux.git/commitdiff
iommu/vt-d: Cleanup unused variable
authorJacob Pan <[email protected]>
Mon, 24 Jun 2019 20:17:42 +0000 (13:17 -0700)
committerJoerg Roedel <[email protected]>
Mon, 1 Jul 2019 12:24:01 +0000 (14:24 +0200)
Linux IRQ number virq is not used in IRTE allocation. Remove it.

Signed-off-by: Jacob Pan <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
drivers/iommu/intel_irq_remapping.c

index 4160aa9f3f8086a41b6513c12f67b08b00daf5de..4786ca061e31fd6e0ad6cb3328f66e89306e064a 100644 (file)
@@ -101,7 +101,7 @@ static void init_ir_status(struct intel_iommu *iommu)
                iommu->flags |= VTD_FLAG_IRQ_REMAP_PRE_ENABLED;
 }
 
-static int alloc_irte(struct intel_iommu *iommu, int irq,
+static int alloc_irte(struct intel_iommu *iommu,
                      struct irq_2_iommu *irq_iommu, u16 count)
 {
        struct ir_table *table = iommu->ir_table;
@@ -1374,7 +1374,7 @@ static int intel_irq_remapping_alloc(struct irq_domain *domain,
                goto out_free_parent;
 
        down_read(&dmar_global_lock);
-       index = alloc_irte(iommu, virq, &data->irq_2_iommu, nr_irqs);
+       index = alloc_irte(iommu, &data->irq_2_iommu, nr_irqs);
        up_read(&dmar_global_lock);
        if (index < 0) {
                pr_warn("Failed to allocate IRTE\n");
This page took 0.05135 seconds and 4 git commands to generate.