diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-02-16 21:44:33 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-20 00:57:51 +0100 |
commit | 32aa64f77e032511079fec5ec0465aeb6d6c3891 (patch) | |
tree | ea59097d6ce2c2f9259f7b5b30b17c91b9665a15 /drivers/net/ethernet | |
parent | vmxnet3: cap copy length at size of skb to prevent dropped frames on tx (diff) | |
download | linux-32aa64f77e032511079fec5ec0465aeb6d6c3891.tar.xz linux-32aa64f77e032511079fec5ec0465aeb6d6c3891.zip |
net/ethernet: ks8851_mll: signedness bug in ks8851_probe()
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/micrel/ks8851_mll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/micrel/ks8851_mll.c b/drivers/net/ethernet/micrel/ks8851_mll.c index 231176fcd2ba..2784bc706f1e 100644 --- a/drivers/net/ethernet/micrel/ks8851_mll.c +++ b/drivers/net/ethernet/micrel/ks8851_mll.c @@ -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; } |