aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/lp486e.c
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2007-09-02 06:30:18 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:15 -0400
commitff8ac60948ba819b89e9c87083e8050fc2f89999 (patch)
tree611975d22d7ddd8c49a073c61e6e4b7c9523fedb /drivers/net/lp486e.c
parent10d024c1b2fd58af8362670d7d6e5ae52fc33353 (diff)
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>
Diffstat (limited to 'drivers/net/lp486e.c')
-rw-r--r--drivers/net/lp486e.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/lp486e.c b/drivers/net/lp486e.c
index 5fc18da1873d..408ae6eb6a8b 100644
--- a/drivers/net/lp486e.c
+++ b/drivers/net/lp486e.c
@@ -515,8 +515,6 @@ CLEAR_INT(void) {
515 outb(0, IOADDR+8); 515 outb(0, IOADDR+8);
516} 516}
517 517
518#define SIZE(x) (sizeof(x)/sizeof((x)[0]))
519
520#if 0 518#if 0
521/* selftest or dump */ 519/* selftest or dump */
522static void 520static void
@@ -532,7 +530,7 @@ i596_port_do(struct net_device *dev, int portcmd, char *cmdname) {
532 mdelay(30); /* random, unmotivated */ 530 mdelay(30); /* random, unmotivated */
533 531
534 printk("lp486e i82596 %s result:\n", cmdname); 532 printk("lp486e i82596 %s result:\n", cmdname);
535 for (m = SIZE(lp->dump.dump); m && lp->dump.dump[m-1] == 0; m--) 533 for (m = ARRAY_SIZE(lp->dump.dump); m && lp->dump.dump[m-1] == 0; m--)
536 ; 534 ;
537 for (i = 0; i < m; i++) { 535 for (i = 0; i < m; i++) {
538 printk(" %04x", lp->dump.dump[i]); 536 printk(" %04x", lp->dump.dump[i]);