diff mbox

[6/7] spi/mpc8xxx: don't check platform_get_irq's return value against zero

Message ID 1260979809-24811-6-git-send-email-u.kleine-koenig@pengutronix.de (mailing list archive)
State Superseded
Headers show

Commit Message

Uwe Kleine-König Dec. 16, 2009, 4:10 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/spi/spi_mpc8xxx.c b/drivers/spi/spi_mpc8xxx.c
index e9390d7..b13501a 100644
--- a/drivers/spi/spi_mpc8xxx.c
+++ b/drivers/spi/spi_mpc8xxx.c
@@ -1339,7 +1339,7 @@  static int __devinit plat_mpc8xxx_spi_probe(struct platform_device *pdev)
 		return -EINVAL;
 
 	irq = platform_get_irq(pdev, 0);
-	if (!irq)
+	if ((int)irq <= 0)
 		return -EINVAL;
 
 	master = mpc8xxx_spi_probe(&pdev->dev, mem, irq);