mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
[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>
This commit is contained in:
parent
b5492c4ed7
commit
2db84a8699
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ nicstar_read_eprom_status( virt_addr_t base )
|
||||||
/* Send read instruction */
|
/* Send read instruction */
|
||||||
val = NICSTAR_REG_READ( base, NICSTAR_REG_GENERAL_PURPOSE ) & 0xFFFFFFF0;
|
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,
|
NICSTAR_REG_WRITE( base, NICSTAR_REG_GENERAL_PURPOSE,
|
||||||
(val | rdsrtab[i]) );
|
(val | rdsrtab[i]) );
|
||||||
|
|
Loading…
Reference in a new issue