drivers/net/: all drivers/net/ cleanup with ARRAY_SIZE

Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
Denis Cheng
2007-09-02 18:30:18 +08:00
committed by David S. Miller
parent 10d024c1b2
commit ff8ac60948
37 changed files with 70 additions and 78 deletions

View File

@ -515,8 +515,6 @@ CLEAR_INT(void) {
outb(0, IOADDR+8);
}
#define SIZE(x) (sizeof(x)/sizeof((x)[0]))
#if 0
/* selftest or dump */
static void
@ -532,7 +530,7 @@ i596_port_do(struct net_device *dev, int portcmd, char *cmdname) {
mdelay(30); /* random, unmotivated */
printk("lp486e i82596 %s result:\n", cmdname);
for (m = SIZE(lp->dump.dump); m && lp->dump.dump[m-1] == 0; m--)
for (m = ARRAY_SIZE(lp->dump.dump); m && lp->dump.dump[m-1] == 0; m--)
;
for (i = 0; i < m; i++) {
printk(" %04x", lp->dump.dump[i]);