diff mbox series

x86/IO-APIC: drop an unused variable from setup_IO_APIC_irqs()

Message ID 5CB0930C0200007800226E5D@prv1-mh.provo.novell.com (mailing list archive)
State New, archived
Headers show
Series x86/IO-APIC: drop an unused variable from setup_IO_APIC_irqs() | expand

Commit Message

Jan Beulich April 12, 2019, 1:30 p.m. UTC
Must be a left-over from earlier days.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

Comments

Andrew Cooper April 12, 2019, 1:32 p.m. UTC | #1
On 12/04/2019 14:30, Jan Beulich wrote:
> Must be a left-over from earlier days.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
diff mbox series

Patch

--- a/xen/arch/x86/io_apic.c
+++ b/xen/arch/x86/io_apic.c
@@ -984,8 +984,6 @@  static void __init setup_IO_APIC_irqs(vo
 
     for (apic = 0; apic < nr_ioapics; apic++) {
         for (pin = 0; pin < nr_ioapic_entries[apic]; pin++) {
-            struct irq_desc *desc;
-
             /*
              * add it to the IO-APIC irq-routing table:
              */
@@ -1038,7 +1036,6 @@  static void __init setup_IO_APIC_irqs(vo
             if (platform_legacy_irq(irq))
                 disable_8259A_irq(irq_to_desc(irq));
 
-            desc = irq_to_desc(irq);
             SET_DEST(entry, logical, cpu_mask_to_apicid(TARGET_CPUS));
             spin_lock_irqsave(&ioapic_lock, flags);
             __ioapic_write_entry(apic, pin, 0, entry);