]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ATM]: [nicstar] Replace C code with call to ARRAY_SIZE() macro.
authorRobert P. J. Day <rpjday@mindspring.com>
Tue, 17 Jul 2007 01:31:51 +0000 (18:31 -0700)
committerDavid 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

index 480947f4e01e8ded8b84f243e065dcf40c423524..842e26c45557f850d4f3d0280f353eae4adb71e6 100644 (file)
@@ -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]) );