From 3de12533184ea13198de6c02fd83e331a894b075 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Tue, 13 Sep 2022 10:14:27 +0200 Subject: [PATCH] mb/ocp: Use "if (!ptr)" in preference to "if (ptr == NULL)" Signed-off-by: Elyes Haouas Change-Id: Ie5fc0a8230cdcc24ad1d2d94cc6d019ff10aac48 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67608 Tested-by: build bot (Jenkins) Reviewed-by: Jonathan Zhang --- src/mainboard/ocp/deltalake/ramstage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainboard/ocp/deltalake/ramstage.c b/src/mainboard/ocp/deltalake/ramstage.c index 81cc4ec276..efc9d663ea 100644 --- a/src/mainboard/ocp/deltalake/ramstage.c +++ b/src/mainboard/ocp/deltalake/ramstage.c @@ -124,7 +124,7 @@ static void dl_oem_smbios_strings(struct device *dev, struct smbios_type11 *t) /* OEM string 7 is the register vendor ID in SPD for each DIMM strung together */ hob = get_system_memory_map(); - assert(hob != NULL); + assert(hob); /* There are at most 6 channels and 2 DIMMs per channel, but Delta Lake has 6 DIMMs, e.g. b300 0000 b300 0000 b300 0000 b300 0000 b300 0000 b300 0000 */ for (int ch = 0; ch < MAX_CH; ch++) {