northbridge/via/vx900: Remove unused variables
The `printram` function only expands to a value only in debug builds. This isn't done in default builds. Change-Id: Ic88c4cc730ae2d0d0718c7f71260cd2b45a3ddcd Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32424 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
0f49dd26ad
commit
358ec83d03
|
@ -554,7 +554,6 @@ static u8 vx900_get_CWL(u8 CAS)
|
|||
static void vx900_dram_timing(ramctr_timing * ctrl)
|
||||
{
|
||||
u8 reg8, val, tFAW, tRRD;
|
||||
u32 val32;
|
||||
|
||||
/* Maximum supported DDR3 frequency is 533MHz (DDR3 1066) so make sure
|
||||
* we cap it if we have faster DIMMs.
|
||||
|
@ -569,8 +568,7 @@ static void vx900_dram_timing(ramctr_timing * ctrl)
|
|||
ctrl->tCK = TCK_266MHZ;
|
||||
}
|
||||
|
||||
val32 = (1000 << 8) / ctrl->tCK;
|
||||
printram("Selected DRAM frequency: %u MHz\n", val32);
|
||||
printram("Selected DRAM frequency: %u MHz\n", (1000 << 8) / ctrl->tCK);
|
||||
|
||||
/* Find CAS and CWL latencies */
|
||||
val = DIV_ROUND_UP(ctrl->tAA, ctrl->tCK);
|
||||
|
|
Loading…
Reference in New Issue