x86: hpet: Fix inverted return value check in arch_setup_hpet_msi()
authorJan Beulich <JBeulich@suse.com>
Fri, 2 Nov 2012 14:00:29 +0000 (14:00 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 2 Nov 2012 21:53:27 +0000 (22:53 +0100)
setup_hpet_msi_remapped() returns a negative error indicator on error
- check for this rather than for a boolean false indication, and pass
on that error code rather than a meaningless "-1".

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Link: http://lkml.kernel.org/r/5093E00D02000078000A60E2@nat28.tlf.novell.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/apic/io_apic.c

index 1817fa911024f07151d3edf91bd350722c9f79f8..b134f0b7ed25cc877f2b83e96a17103694cc4029 100644 (file)
@@ -3317,8 +3317,9 @@ int arch_setup_hpet_msi(unsigned int irq, unsigned int id)
        int ret;
 
        if (irq_remapping_enabled) {
-               if (!setup_hpet_msi_remapped(irq, id))
-                       return -1;
+               ret = setup_hpet_msi_remapped(irq, id);
+               if (ret)
+                       return ret;
        }
 
        ret = msi_compose_msg(NULL, irq, &msg, id);