diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-07-17 03:31:51 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-18 10:46:53 +0200 |
commit | 2db84a8699db45c1c62dccdad61323eab56c111e (patch) | |
tree | 0968bd73cd78058f185282c1f62a762137b1a6da /drivers/atm/nicstarmac.c | |
parent | [ATM]: Eliminate dead config variable CONFIG_BR2684_FAST_TRANS. (diff) | |
download | linux-2db84a8699db45c1c62dccdad61323eab56c111e.tar.xz linux-2db84a8699db45c1c62dccdad61323eab56c111e.zip |
[ATM]: [nicstar] Replace C code with call to ARRAY_SIZE() macro.
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>
Diffstat (limited to 'drivers/atm/nicstarmac.c')
-rw-r--r-- | drivers/atm/nicstarmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atm/nicstarmac.c b/drivers/atm/nicstarmac.c index 480947f4e01e..842e26c45557 100644 --- 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]) ); |