[coreboot] New Defects reported by Coverity Scan for coreboot

scan-admin at coverity.com scan-admin at coverity.com
Tue Aug 14 17:04:58 CEST 2018


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.


New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 1394774:  Control flow issues  (NO_EFFECT)
/src/mainboard/google/octopus/variants/baseboard/memory.c: 208 in variant_lpddr4_config()


________________________________________________________________________________________________________
*** CID 1394774:  Control flow issues  (NO_EFFECT)
/src/mainboard/google/octopus/variants/baseboard/memory.c: 208 in variant_lpddr4_config()
202     {
203     	if (!IS_ENABLED(CONFIG_DRAM_PART_NUM_IN_CBI))
204     		return &non_cbi_lp4cfg;
205     
206     	if (!IS_ENABLED(CONFIG_DRAM_PART_NUM_ALWAYS_IN_CBI)) {
207     		/* Fall back non cbi memory config. */
>>>     CID 1394774:  Control flow issues  (NO_EFFECT)
>>>     This less-than-zero comparison of an unsigned value is never true. "board_id() < 0U".
208     		if (board_id() < CONFIG_DRAM_PART_IN_CBI_BOARD_ID_MIN)
209     			return &non_cbi_lp4cfg;
210     	}
211     
212     	return &cbi_lp4cfg;
213     }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbLuoVetFLSjdonCi1EjfHRqWGQvojmmkYaBE-2BPJiTQvQ-3D-3D_q4bX76XMySz3BXBlWr5fXXJ4cvAsgEXEqC7dBPM7O5Yqj-2FvhC73rCLK6dtzzCfMWjQOuzmzr7rmOQ1qU6x0B3S4KE0RDQ6NHiAv7kT3K44qrcE8EvNx62zutZEjUuHIqZg8XZoP0WQyYlTpzhCj1zu5gq-2BvvP4dePDALcRAR-2Fvce8Bm-2BALjqjFe41Mh-2B3EjGPe-2Fz1qfOPkKFgPgQ7v7MfPH4a332wE5r8unBbKoHw64-3D




More information about the coreboot mailing list