summaryrefslogtreecommitdiffstats
path: root/drivers/net/sh_eth.c
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2008-09-10 19:22:44 +0200
committerPaul Mundt <lethal@linux-sh.org>2008-09-11 14:56:57 +0900
commitcc3c080d9f4484021e7b14f99de94a8c85a668d5 (patch)
tree0c0a7748d8b5313f3f9043227c755f904663fb5e /drivers/net/sh_eth.c
parentb21a91043592434e2847c4b552be7b51851d92c3 (diff)
downloadop-kernel-dev-cc3c080d9f4484021e7b14f99de94a8c85a668d5.zip
op-kernel-dev-cc3c080d9f4484021e7b14f99de94a8c85a668d5.tar.gz
sh_eth: unsigned ndev->irq cannot be negative
unsigned ndev->irq cannot be negative Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/net/sh_eth.c')
-rw-r--r--drivers/net/sh_eth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c
index 1c370e6..1a04814 100644
--- a/drivers/net/sh_eth.c
+++ b/drivers/net/sh_eth.c
@@ -1205,11 +1205,12 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
devno = 0;
ndev->dma = -1;
- ndev->irq = platform_get_irq(pdev, 0);
- if (ndev->irq < 0) {
+ ret = platform_get_irq(pdev, 0);
+ if (ret < 0) {
ret = -ENODEV;
goto out_release;
}
+ ndev->irq = ret;
SET_NETDEV_DEV(ndev, &pdev->dev);
OpenPOWER on IntegriCloud