From 04f8a662953402ee6c01aae89a1a432fa022d785 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Wed, 14 Aug 2024 05:55:33 +0200 Subject: device/dram/ddr2: Use boolean for spd_dimm_is_registered_ddr2() Change-Id: I475f0c7582148e9b9f86b542f753a6654e9f9135 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/83901 Tested-by: build bot (Jenkins) Reviewed-by: coreboot org --- src/device/dram/ddr2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/device/dram') diff --git a/src/device/dram/ddr2.c b/src/device/dram/ddr2.c index ce7a3bf777..6ac059f259 100644 --- a/src/device/dram/ddr2.c +++ b/src/device/dram/ddr2.c @@ -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; } /** -- cgit v1.2.3