amd/mct/ddr3: Allow critical delay delta to go negative

The critical delay delta was incorrectly specified as an
unsigned short.  Use a signed short instead.

Found-by: Coverity Scan #1347355
Change-Id: I37d769afb8c8af85a0375ae459e9d4ab0adcca74
Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
Reviewed-on: https://review.coreboot.org/18071
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
This commit is contained in:
Timothy Pearson 2017-01-09 14:10:25 -06:00
parent cf1cb5b2d4
commit 5153cbfeb3
1 changed files with 1 additions and 1 deletions

View File

@ -3028,7 +3028,7 @@ void fam15EnableTrainingMode(struct MCTStatStruc *pMCTstat,
uint8_t lane; uint8_t lane;
uint8_t dimm; uint8_t dimm;
uint16_t max_cdd_we_delta; uint16_t max_cdd_we_delta;
uint16_t cdd_trwtto_we_delta; int16_t cdd_trwtto_we_delta;
uint8_t receiver; uint8_t receiver;
uint8_t lane_count; uint8_t lane_count;
uint8_t x4_present = 0; uint8_t x4_present = 0;