Skip to content

Commit

Permalink
net/ethernet: ks8851_mll: signedness bug in ks8851_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and davem330 committed Feb 19, 2012
1 parent b203262 commit 32aa64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/micrel/ks8851_mll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 32aa64f

Please sign in to comment.