Hi,
Please find the latest report on new defect(s) introduced to coreboot found with Coverity Scan.
1 new defect(s) introduced to coreboot found with Coverity Scan. 1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s)
** CID 1445764: Incorrect expression (CONSTANT_EXPRESSION_RESULT) /src/soc/intel/broadwell/raminit.c: 155 in setup_sdram_meminfo()
________________________________________________________________________________________________________ *** CID 1445764: Incorrect expression (CONSTANT_EXPRESSION_RESULT) /src/soc/intel/broadwell/raminit.c: 155 in setup_sdram_meminfo() 149 return; 150 } 151 152 memset(mem_info, 0, sizeof(*mem_info)); 153 /* Translate pei_memory_info struct data into memory_info struct */ 154 mem_info->dimm_cnt = pei_data->meminfo.dimm_cnt;
CID 1445764: Incorrect expression (CONSTANT_EXPRESSION_RESULT) "8 < 8" is always false regardless of the values of its operands because those operands are identical. This occurs as the logical first operand of "?:".
155 for (int i = 0; i < MIN(DIMM_INFO_TOTAL, PEI_DIMM_INFO_TOTAL); i++) { 156 struct dimm_info *dimm = &mem_info->dimm[i]; 157 const struct pei_dimm_info *pei_dimm = 158 &pei_data->meminfo.dimm[i]; 159 dimm->dimm_size = pei_dimm->dimm_size; 160 dimm->ddr_type = pei_dimm->ddr_type;
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...