Re: [PATCH] net: eepro testing positive EBUSY return byrequest_irq()?

From: David Miller
Date: Mon Jan 03 2011 - 14:37:02 EST


From: roel kluin <roel.kluin@xxxxxxxxx>
Date: Sun, 02 Jan 2011 15:52:23 +0100

> + for (i = 0; i < ARRAY_SIZE(irqlist); i++) {
> + retval = request_irq (irqlist[i], NULL, 0, "bogus", NULL);
> + if (retval != -EBUSY)
> + continue;
> + if (retval < 0)
> + goto out;
> + dev->irq = irqlist[i];
> + break;

This series of tests don't make much sense.

If we get to the "retval < 0" check, retval must be -EBUSY. So at
best it's superfluous, at worst it's confusing.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/