sh_eth: unsigned ndev->irq cannot be negative
Subsystems (2)
PATCH 1/1 sh_eth: unsigned ndev->irq cannot be negative
unsigned ndev->irq cannot be negative
Signed-off-by Roel Kluin <[email protected]>
---
drivers/net/sh_eth.c +3 -2
@@ -1182,11 +1182,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);
Paul Mundt
AppliedQuoted 3 lines · roel kluin
unsigned
ndev->irqcannot be negativeSigned-off-by Roel Kluin <[email protected]>
Quoted 5 lines · roel kluin
possibly since commit
b420b1a7a17ea88531d0e12b2f2679a0c8365803
---
rtc-sh: Unsigned rtc->{periodic,carry,alarm}_irq cannot be negativeSigned-off-by Roel Kluin <[email protected]>
Applied, thanks.