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-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yq2SfQfrHt3Prsn4qSLrYIrajINpiFX8l0vrlNSf8iCrS27qY0Cr0DkycwNUgGZJj8-3DKsUG_L-2FDzr14mnrsJO5b1wX1hp9b1MAQygl7x-2B74RAaH2cn17tJjpgCX7h5oLGUhbkFSPBEYFny8sg-2FRTK9DypvkliPRi1hZjFril-2BI8ZCwAJutOP9N6PGn3FWvy0BnbVtwWleruWKLyYCHK8XXoBCxgkteohm6WKnpNynq-2BbSPygZfCogX5G1PW7FTIELn9pQlHCbwMqrPVI5bRYS8GS64wSFZEnOzlYk-2BJ7ROlliZ0SLiM-3D
_______________________________________________
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org

Reply via email to