Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Robert P. J. Day and committed by
David S. Miller
2db84a86 b5492c4e

+1 -1
+1 -1
drivers/atm/nicstarmac.c
··· 134 134 /* Send read instruction */ 135 135 val = NICSTAR_REG_READ( base, NICSTAR_REG_GENERAL_PURPOSE ) & 0xFFFFFFF0; 136 136 137 - for (i=0; i<sizeof rdsrtab/sizeof rdsrtab[0]; i++) 137 + for (i=0; i<ARRAY_SIZE(rdsrtab); i++) 138 138 { 139 139 NICSTAR_REG_WRITE( base, NICSTAR_REG_GENERAL_PURPOSE, 140 140 (val | rdsrtab[i]) );