projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5492c4
)
[ATM]: [nicstar] Replace C code with call to ARRAY_SIZE() macro.
author
Robert P. J. Day
<rpjday@mindspring.com>
Tue, 17 Jul 2007 01:31:51 +0000
(18:31 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Wed, 18 Jul 2007 08:46:53 +0000
(
01:46
-0700)
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: chas williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/nicstarmac.c
patch
|
blob
|
history
diff --git
a/drivers/atm/nicstarmac.c
b/drivers/atm/nicstarmac.c
index
480947f
..
842e26c
100644
(file)
--- a/
drivers/atm/nicstarmac.c
+++ b/
drivers/atm/nicstarmac.c
@@
-134,7
+134,7
@@
nicstar_read_eprom_status( virt_addr_t base )
/* Send read instruction */
val = NICSTAR_REG_READ( base, NICSTAR_REG_GENERAL_PURPOSE ) & 0xFFFFFFF0;
- for (i=0; i<
sizeof rdsrtab/sizeof rdsrtab[0]
; i++)
+ for (i=0; i<
ARRAY_SIZE(rdsrtab)
; i++)
{
NICSTAR_REG_WRITE( base, NICSTAR_REG_GENERAL_PURPOSE,
(val | rdsrtab[i]) );