Author: uwe Date: 2007-06-29 17:32:19 +0200 (Fri, 29 Jun 2007) New Revision: 417
Modified: LinuxBIOSv3/mainboard/artecgroup/dbe61/stage1.c Log: Use ARRAY_SIZE whereever possible (trivial).
Signed-off-by: Uwe Hermann uwe@hermann-uwe.de Acked-by: Uwe Hermann uwe@hermann-uwe.de
Modified: LinuxBIOSv3/mainboard/artecgroup/dbe61/stage1.c =================================================================== --- LinuxBIOSv3/mainboard/artecgroup/dbe61/stage1.c 2007-06-29 15:23:52 UTC (rev 416) +++ LinuxBIOSv3/mainboard/artecgroup/dbe61/stage1.c 2007-06-29 15:32:19 UTC (rev 417) @@ -44,7 +44,7 @@ static void dbe61_msr_init(void) { int i; - for(i = 0; i < sizeof(dbe61_msr)/sizeof(dbe61_msr[0]); i++) + for (i = 0; i < ARRAY_SIZE(dbe61_msr); i++) wrmsr(dbe61_msr[i].reg, dbe61_msr[i].msr); }