Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2db84a86 authored by Robert P. J. Day's avatar Robert P. J. Day Committed by David S. Miller
Browse files

[ATM]: [nicstar] Replace C code with call to ARRAY_SIZE() macro.

parent b5492c4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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]) );