From: roel kluin Date: Wed, 10 Sep 2008 17:22:44 +0000 (+0200) Subject: sh_eth: unsigned ndev->irq cannot be negative X-Git-Tag: v2.6.28-rc1~99^2~61 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=cc3c080d9f4484021e7b14f99de94a8c85a668d5;p=linux-2.6-omap-h63xx.git sh_eth: unsigned ndev->irq cannot be negative unsigned ndev->irq cannot be negative Signed-off-by: Roel Kluin Signed-off-by: Paul Mundt --- diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index 1c370e6aa64..1a04814291c 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);