Subject: [patch] net/ethernet: ks8851_mll: signedness bug in ks8851_probe()

From: Dan Carpenter <[email-masked]>
Date: Fri, 17 Feb 2012 09:44:33 +0300

netdev->irq is unsigned, so it's never less than zero.

Signed-off-by: Dan Carpenter <[email-masked]>

diff --git a/drivers/net/ethernet/micrel/ks8851_mll.c b/drivers/net/ethernet/micrel/ks8851_mll.c
index 10d5798..b8104d9 100644
--- a/drivers/net/ethernet/micrel/ks8851_mll.c
+++ b/drivers/net/ethernet/micrel/ks8851_mll.c
@@ -1544,7 +1544,7 @@ static int __devinit ks8851_probe(struct platform_device *pdev)
 
 	netdev->irq = platform_get_irq(pdev, 0);
 
-	if (netdev->irq < 0) {
+	if ((int)netdev->irq < 0) {
 		err = netdev->irq;
 		goto err_get_irq;
 	}