diff options
author | roel kluin <roel.kluin@gmail.com> | 2008-09-10 13:22:44 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-09-11 01:56:57 -0400 |
commit | cc3c080d9f4484021e7b14f99de94a8c85a668d5 (patch) | |
tree | 0c0a7748d8b5313f3f9043227c755f904663fb5e /drivers/net/sh_eth.c | |
parent | b21a91043592434e2847c4b552be7b51851d92c3 (diff) |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index 1c370e6aa641..1a04814291c1 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) | |||
1205 | devno = 0; | 1205 | devno = 0; |
1206 | 1206 | ||
1207 | ndev->dma = -1; | 1207 | ndev->dma = -1; |
1208 | ndev->irq = platform_get_irq(pdev, 0); | 1208 | ret = platform_get_irq(pdev, 0); |
1209 | if (ndev->irq < 0) { | 1209 | if (ret < 0) { |
1210 | ret = -ENODEV; | 1210 | ret = -ENODEV; |
1211 | goto out_release; | 1211 | goto out_release; |
1212 | } | 1212 | } |
1213 | ndev->irq = ret; | ||
1213 | 1214 | ||
1214 | SET_NETDEV_DEV(ndev, &pdev->dev); | 1215 | SET_NETDEV_DEV(ndev, &pdev->dev); |
1215 | 1216 | ||