]> err.no Git - linux-2.6/commitdiff
[POWERPC] PS3: Fix request_irq warning
authorGeoff Levand <geoffrey.levand@am.sony.com>
Fri, 11 May 2007 17:41:59 +0000 (03:41 +1000)
committerPaul Mackerras <paulus@samba.org>
Sat, 12 May 2007 01:32:48 +0000 (11:32 +1000)
Fix compiler warning:

ps3/smp.c:122: warning: ignoring return value of 'request_irq'

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/ps3/smp.c

index 8729348c06083af49b71ea18e78d4ee87e5471ab..53416ec5198b0beabaea0f4b85a81295537f6c1a 100644 (file)
@@ -118,9 +118,11 @@ static void __init ps3_smp_setup_cpu(int cpu)
                DBG("%s:%d: (%d, %d) => virq %u\n",
                        __func__, __LINE__, cpu, i, virqs[i]);
 
+               result = request_irq(virqs[i], ipi_function_handler,
+                       IRQF_DISABLED, names[i], (void*)(long)i);
 
-               request_irq(virqs[i], ipi_function_handler, IRQF_DISABLED,
-                       names[i], (void*)(long)i);
+               if (result)
+                       virqs[i] = NO_IRQ;
        }
 
        ps3_register_ipi_debug_brk(cpu, virqs[PPC_MSG_DEBUGGER_BREAK]);