device/dram/ddr2: Use boolean for spd_dimm_is_registered_ddr2()

Change-Id: I475f0c7582148e9b9f86b542f753a6654e9f9135
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83901
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: coreboot org <coreboot.org@gmail.com>
This commit is contained in:
Elyes Haouas 2024-08-14 05:55:33 +02:00
commit 04f8a66295
2 changed files with 5 additions and 4 deletions

View file

@ -24,13 +24,13 @@
*
* @param type DIMM type. This is byte[20] of the SPD.
*/
int spd_dimm_is_registered_ddr2(enum spd_dimm_type_ddr2 type)
bool spd_dimm_is_registered_ddr2(enum spd_dimm_type_ddr2 type)
{
if ((type == SPD_DDR2_DIMM_TYPE_RDIMM) || (type == SPD_DDR2_DIMM_TYPE_72B_SO_RDIMM) ||
(type == SPD_DDR2_DIMM_TYPE_MINI_RDIMM))
return 1;
return true;
return 0;
return false;
}
/**