nb/amd/amdmct/mct_ddr3: Remove duplicate code

This conditional is exactly the same as the one right below it, except
the operations are reorganized slightly.

Change-Id: I00c19a467d23a0736bc2a33b516f97080039e634
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity CID 1347321
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33267
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Jacob Garber 2019-06-06 11:49:50 -06:00 committed by Patrick Georgi
parent 532e0c74e1
commit 86d8c4279d
1 changed files with 0 additions and 6 deletions

View File

@ -3090,12 +3090,6 @@ void fam15EnableTrainingMode(struct MCTStatStruc *pMCTstat,
if (pDCTstat->DIMMValidDCT[0] && pDCTstat->DIMMValidDCT[1] && mctGet_NVbits(NV_Unganged))
interleave_channels = 1;
dword = (Get_NB32_DCT(dev, dct, 0x240) >> 4) & 0xf;
if (dword > 6)
read_odt_delay = dword - 6;
else
read_odt_delay = 0;
dword = Get_NB32_DCT(dev, dct, 0x240);
delay = (dword >> 4) & 0xf;
if (delay > 6)