nb/amd/ddr3: Make the maximum CDD a signed value

max_cdd_we_delta should be signed to allow for negative CDD.

Found-by: Coverity Scan #1347355
Change-Id: Iaccd1021680296d169c26c25e339f83fbd7cc065
Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
Reviewed-on: https://review.coreboot.org/18162
Tested-by: build bot (Jenkins)
Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Timothy Pearson 2017-01-17 18:27:42 -06:00
parent 96326d3aef
commit 9b4c888f7b
1 changed files with 1 additions and 1 deletions

View File

@ -3027,7 +3027,7 @@ void fam15EnableTrainingMode(struct MCTStatStruc *pMCTstat,
/* Disable training mode */
uint8_t lane;
uint8_t dimm;
uint16_t max_cdd_we_delta;
int16_t max_cdd_we_delta;
int16_t cdd_trwtto_we_delta;
uint8_t receiver;
uint8_t lane_count;