]> Git Repo - linux.git/commitdiff
xen/events: drop negativity check of unsigned parameter
authorAndrey Utkin <[email protected]>
Thu, 17 Jul 2014 16:25:50 +0000 (19:25 +0300)
committerDavid Vrabel <[email protected]>
Fri, 1 Aug 2014 14:44:45 +0000 (15:44 +0100)
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=80531
Reported-by: David Binderman <[email protected]>
Signed-off-by: Andrey Utkin <[email protected]>
Signed-off-by: David Vrabel <[email protected]>
drivers/xen/events/events_base.c

index c919d3d5c8458742aabb2963624f541004e8df18..5b5c5ff273fdb7b09def11dcee21e4043640ce77 100644 (file)
@@ -246,7 +246,7 @@ static void xen_irq_info_cleanup(struct irq_info *info)
  */
 unsigned int evtchn_from_irq(unsigned irq)
 {
-       if (unlikely(WARN(irq < 0 || irq >= nr_irqs, "Invalid irq %d!\n", irq)))
+       if (unlikely(WARN(irq >= nr_irqs, "Invalid irq %d!\n", irq)))
                return 0;
 
        return info_for_irq(irq)->evtchn;
This page took 0.05485 seconds and 4 git commands to generate.