diff --git a/northbridge/amd/geodelx/geodelxinit.c b/northbridge/amd/geodelx/geodelxinit.c index 69549615e7..d79bc780e7 100644 --- a/northbridge/amd/geodelx/geodelxinit.c +++ b/northbridge/amd/geodelx/geodelxinit.c @@ -471,7 +471,7 @@ static void clock_gating_init(void) struct msr msr; struct msrinit *gating = clock_gating_default; - for (/* Nothing */; gating->msrnum != 0xffffffff; gating++) { + for (; gating->msrnum != 0xffffffff; gating++) { msr = rdmsr(gating->msrnum); msr.hi |= gating->msr.hi; msr.lo |= gating->msr.lo; @@ -487,7 +487,7 @@ static void geode_link_priority(void) struct msr msr; struct msrinit *prio = geode_link_priority_table; - for (/* Nothing */; prio->msrnum != 0xffffffff; prio++) { + for (; prio->msrnum != 0xffffffff; prio++) { msr = rdmsr(prio->msrnum); msr.hi |= prio->msr.hi; msr.lo &= ~0xfff; @@ -539,7 +539,7 @@ static void set_shadowRCONF(u32 shadowHi, u32 shadowLo) } /* Load up C000 settings in eax. */ - for (/* Nothing */; bit; bit--) { + for (; bit; bit--) { msr.lo <<= 8; msr.lo |= 1; /* Cache disable PCI/Shadow memory. */ if (shadowByte && (1 << bit)) @@ -559,7 +559,7 @@ static void set_shadowRCONF(u32 shadowHi, u32 shadowLo) } /* Load up E000 settings in eax. */ - for (/* Nothing */; bit; bit--) { + for (; bit; bit--) { msr.lo <<= 8; msr.lo |= 1; /* Cache disable PCI/Shadow memory. */ if (shadowByte && (1 << bit)) diff --git a/southbridge/amd/cs5536/cs5536.c b/southbridge/amd/cs5536/cs5536.c index b243b2c8b0..2a19a4a41d 100644 --- a/southbridge/amd/cs5536/cs5536.c +++ b/southbridge/amd/cs5536/cs5536.c @@ -492,7 +492,7 @@ void chipsetinit(void) if (!IsS3Resume()) { struct acpi_init *aci = acpi_init_table; - for (/* Nothing */; aci->ioreg; aci++) { + for (; aci->ioreg; aci++) { outl(aci->regdata, aci->ioreg); inl(aci->ioreg); } @@ -517,7 +517,7 @@ void chipsetinit(void) wrmsr(GLPCI_SB_CTRL, msr); csi = SB_MASTER_CONF_TABLE; - for (/* Nothing */; csi->msrnum; csi++) { + for (; csi->msrnum; csi++) { msr.lo = csi->msr.lo; msr.hi = csi->msr.hi; wrmsr(csi->msrnum, msr); @@ -533,7 +533,7 @@ void chipsetinit(void) /* TODO: Why the extra block here? Can it be removed? */ { csi = CS5536_CLOCK_GATING_TABLE; - for (/* Nothing */; csi->msrnum; csi++) { + for (; csi->msrnum; csi++) { msr.lo = csi->msr.lo; msr.hi = csi->msr.hi; wrmsr(csi->msrnum, msr);