Skip to content

Commit 2db84a8

Browse files
Robert P. J. DayDavid S. Miller
authored andcommitted
[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>
1 parent b5492c4 commit 2db84a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/atm/nicstarmac.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ nicstar_read_eprom_status( virt_addr_t base )
134134
/* Send read instruction */
135135
val = NICSTAR_REG_READ( base, NICSTAR_REG_GENERAL_PURPOSE ) & 0xFFFFFFF0;
136136

137-
for (i=0; i<sizeof rdsrtab/sizeof rdsrtab[0]; i++)
137+
for (i=0; i<ARRAY_SIZE(rdsrtab); i++)
138138
{
139139
NICSTAR_REG_WRITE( base, NICSTAR_REG_GENERAL_PURPOSE,
140140
(val | rdsrtab[i]) );

0 commit comments

Comments
 (0)