summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/micrel/ks8851_mll.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-02-16 20:44:33 +0000
committerDavid S. Miller <davem@davemloft.net>2012-02-19 18:57:51 -0500
commit32aa64f77e032511079fec5ec0465aeb6d6c3891 (patch)
treeea59097d6ce2c2f9259f7b5b30b17c91b9665a15 /drivers/net/ethernet/micrel/ks8851_mll.c
parentb203262de63c56393d09e254242b57c002d8619d (diff)
downloadop-kernel-dev-32aa64f77e032511079fec5ec0465aeb6d6c3891.zip
op-kernel-dev-32aa64f77e032511079fec5ec0465aeb6d6c3891.tar.gz
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/micrel/ks8851_mll.c')
-rw-r--r--drivers/net/ethernet/micrel/ks8851_mll.c2
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 231176f..2784bc7 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;
}
OpenPOWER on IntegriCloud