[PATCH] ps3_free_io_irq: inverted error check

Geert Uytterhoeven Geert.Uytterhoeven at sonycom.com
Thu Dec 21 23:57:16 EST 2006


ps3_free_io_irq: Fix inverted error check after calling
lv1_destruct_io_irq_outlet()

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven at sonycom.com>

---
 arch/powerpc/platforms/ps3/interrupt.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- ps3-linux-src.orig/arch/powerpc/platforms/ps3/interrupt.c
+++ ps3-linux-src/arch/powerpc/platforms/ps3/interrupt.c
@@ -71,7 +71,7 @@ int ps3_free_io_irq(unsigned int virq)
 
 	result = lv1_destruct_io_irq_outlet(virq_to_hw(virq));
 
-	if (!result)
+	if (result)
 		pr_debug("%s:%d: lv1_destruct_io_irq_outlet failed: %s\n",
 			__func__, __LINE__, ps3_result(result));
 

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven at sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium



More information about the Linuxppc-dev mailing list