projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trivial: remove unnecessary semicolons
[cascardo/linux.git]
/
drivers
/
net
/
e2100.c
diff --git
a/drivers/net/e2100.c
b/drivers/net/e2100.c
index
b07ba19
..
d2f6ee1
100644
(file)
--- 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)
printk(" %02X", station_addr[i]);
if (dev->irq < 2) {
printk(" %02X", station_addr[i]);
if (dev->irq < 2) {
- int irqlist[] = {15,
11,10,12,5,9,3,4}, i
;
- for (i = 0; i <
8
; i++)
+ int irqlist[] = {15,
11, 10, 12, 5, 9, 3, 4}
;
+ for (i = 0; i <
ARRAY_SIZE(irqlist)
; i++)
if (request_irq (irqlist[i], NULL, 0, "bogus", NULL) != -EBUSY) {
dev->irq = irqlist[i];
break;
}
if (request_irq (irqlist[i], NULL, 0, "bogus", NULL) != -EBUSY) {
dev->irq = irqlist[i];
break;
}
- if (i >=
8
) {
+ if (i >=
ARRAY_SIZE(irqlist)
) {
printk(" unable to get IRQ %d.\n", dev->irq);
retval = -EAGAIN;
goto out;
printk(" unable to get IRQ %d.\n", dev->irq);
retval = -EAGAIN;
goto out;