[coreboot] [PATCH] fix compiler warning
Nathan Williams
nathan at traverse.com.au
Fri Oct 29 07:58:19 CEST 2010
Trivial fix to remove compiler warning
src/northbridge/amd/lx/raminit.c:302: warning: ‘spd_byte’ may be used uninitialized in this function
Signed-off-by: Nathan Williams <nathan at traverse.com.au>
diff --git a/src/northbridge/amd/lx/raminit.c b/src/northbridge/amd/lx/raminit.c
index 7240898..1dd6d19 100644
--- a/src/northbridge/amd/lx/raminit.c
+++ b/src/northbridge/amd/lx/raminit.c
@@ -299,7 +299,8 @@ static void setCAS(void)
;* Destroys: We really use everything !
;*****************************************************************************/
uint16_t glspeed;
- uint8_t spd_byte, casmap0, casmap1;
+ uint8_t casmap0, casmap1;
+ uint8_t spd_byte = 0;
msr_t msr;
glspeed = GeodeLinkSpeed();
More information about the coreboot
mailing list