]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Revert "xen/events: Add WARN_ON when quick lookup found invalid type."
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 17 Aug 2012 13:45:54 +0000 (09:45 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 17 Aug 2012 13:45:54 +0000 (09:45 -0400)
This reverts commit f6553d0d1de2d27295557954d0d1e9e0da86abee.

drivers/xen/events.c

index f14e7a18072082eeb1df2b8d3a77c7b52c50a855..6908e4ce2a0d69aa67ca0e11251d834770bbd68c 100644 (file)
@@ -827,9 +827,6 @@ int bind_evtchn_to_irq(unsigned int evtchn)
                                              handle_edge_irq, "event");
 
                xen_irq_info_evtchn_init(irq, evtchn);
-       } else {
-               struct irq_info *info = info_for_irq(irq);
-               WARN_ON(info == NULL || info->type != IRQT_EVTCHN);
        }
 
 out:
@@ -865,10 +862,8 @@ static int bind_ipi_to_irq(unsigned int ipi, unsigned int cpu)
                xen_irq_info_ipi_init(cpu, irq, evtchn, ipi);
 
                bind_evtchn_to_cpu(evtchn, cpu);
-       } else {
-               struct irq_info *info = info_for_irq(irq);
-               WARN_ON(info == NULL || info->type != IRQT_IPI);
        }
+
  out:
        mutex_unlock(&irq_mapping_update_lock);
        return irq;
@@ -944,10 +939,8 @@ int bind_virq_to_irq(unsigned int virq, unsigned int cpu)
                xen_irq_info_virq_init(cpu, irq, evtchn, virq);
 
                bind_evtchn_to_cpu(evtchn, cpu);
-       } else {
-               struct irq_info *info = info_for_irq(irq);
-               WARN_ON(info == NULL || info->type != IRQT_VIRQ);
        }
+
 out:
        mutex_unlock(&irq_mapping_update_lock);