net/ethernet: ks8851_mll: signedness bug in ks8851_probe()
Subsystems (3)
PATCH 1/1 net/ethernet: ks8851_mll: signedness bug in ks8851_probe()
netdev->irq is unsigned, so it's never less than zero.
drivers/net/ethernet/micrel/ks8851_mll.c +1 -1
@@ -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; }
Antwort: [patch] net/ethernet: ks8851_mll: signedness bug in ks8851_probe()
Dan Carpenter <[email protected]> schrieb am 17.02.2012 07:44:33:
Quoted 9 lines
Von: Dan Carpenter <[email protected]>
An: Jan Weitzel <[email protected]>
Kopie: Alexey Dobriyan <[email protected]>, "David S. Miller" <[email protected]>, Paul Gortmaker <[email protected]>, Thomas Meyer <[email protected]>, Danny Kukawka <[email protected]>, [email protected], [email protected]
Datum: 17.02.2012 07:45
Betreff: [patch] net/ethernet:ks8851_mll: signedness bug in
ks8851_probe()
Quoted 4 lines
netdev->irqis unsigned, so it's never less than zero.Signed-off-by Dan Carpenter <[email protected]>
Quoted 15 lines
drivers/net/ renamed from drivers/net/ethernet/micrel/ks8851_mll.c +0
-0
ethernet/micrel/ks8851_mll.c
index 10d5798..b8104d9 100644drivers/net/ethernet/micrel/ks8851_mll.c +1
-1@@ -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;}
From: Dan Carpenter <[email protected]>
Date: Fri, 17 Feb 2012 09:44:33 +0300
Quoted 3 lines
netdev->irqis unsigned, so it's never less than zero.Signed-off-by Dan Carpenter <[email protected]>
Applied.