aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e2100.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/e2100.c')
-rw-r--r--drivers/net/e2100.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/e2100.c b/drivers/net/e2100.c
index b07ba1924de..d2f6ee1a629 100644
--- a/drivers/net/e2100.c
+++ b/drivers/net/e2100.c
@@ -216,13 +216,13 @@ static int __init e21_probe1(struct net_device *dev, int ioaddr)
216 printk(" %02X", station_addr[i]); 216 printk(" %02X", station_addr[i]);
217 217
218 if (dev->irq < 2) { 218 if (dev->irq < 2) {
219 int irqlist[] = {15,11,10,12,5,9,3,4}, i; 219 int irqlist[] = {15, 11, 10, 12, 5, 9, 3, 4};
220 for (i = 0; i < 8; i++) 220 for (i = 0; i < ARRAY_SIZE(irqlist); i++)
221 if (request_irq (irqlist[i], NULL, 0, "bogus", NULL) != -EBUSY) { 221 if (request_irq (irqlist[i], NULL, 0, "bogus", NULL) != -EBUSY) {
222 dev->irq = irqlist[i]; 222 dev->irq = irqlist[i];
223 break; 223 break;
224 } 224 }
225 if (i >= 8) { 225 if (i >= ARRAY_SIZE(irqlist)) {
226 printk(" unable to get IRQ %d.\n", dev->irq); 226 printk(" unable to get IRQ %d.\n", dev->irq);
227 retval = -EAGAIN; 227 retval = -EAGAIN;
228 goto out; 228 goto out;