diff --git a/drivers/net/fec.c b/drivers/net/fec.c index b079826586ef11afb27d8e92b81073932899e962..aa1db8e637cd817efc38db8d61b7b9d115764fb9 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -1409,10 +1409,9 @@ fec_probe(struct platform_device *pdev) break; ret = request_irq(irq, fec_enet_interrupt, IRQF_DISABLED, pdev->name, ndev); if (ret) { - while (i >= 0) { + while (--i >= 0) { irq = platform_get_irq(pdev, i); free_irq(irq, ndev); - i--; } goto failed_irq; }