Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/83901?usp=email )
Change subject: device/dram/ddr2: Use boolean for spd_dimm_is_registered_ddr2() ......................................................................
device/dram/ddr2: Use boolean for spd_dimm_is_registered_ddr2()
Change-Id: I475f0c7582148e9b9f86b542f753a6654e9f9135 Signed-off-by: Elyes Haouas ehaouas@noos.fr --- M src/device/dram/ddr2.c M src/include/device/dram/ddr2.h 2 files changed, 4 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/01/83901/1
diff --git a/src/device/dram/ddr2.c b/src/device/dram/ddr2.c index ce7a3bf..6ac059f 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; }
/** diff --git a/src/include/device/dram/ddr2.h b/src/include/device/dram/ddr2.h index f3605b2..dd15984 100644 --- a/src/include/device/dram/ddr2.h +++ b/src/include/device/dram/ddr2.h @@ -154,7 +154,7 @@ u32 serial; };
-int spd_dimm_is_registered_ddr2(enum spd_dimm_type_ddr2 type); +bool spd_dimm_is_registered_ddr2(enum spd_dimm_type_ddr2 type); u8 spd_ddr2_calc_checksum(u8 *spd, int len); u32 spd_decode_spd_size_ddr2(u8 byte0); u32 spd_decode_eeprom_size_ddr2(u8 byte1);