net/ethernet: ks8851_mll: signedness bug in ks8851_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 16 Feb 2012 20:44:33 +0000 (20:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Feb 2012 23:57:51 +0000 (18:57 -0500)
netdev->irq is unsigned, so it's never less than zero.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Tested-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ks8851_mll.c

index 231176fcd2ba390d55741d6d5fa82e7be2311823..2784bc706f1e2cd4cca9ed6289f09105ece35bf3 100644 (file)
@@ -1545,7 +1545,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;
        }