diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-09-13 10:14:27 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-09-15 13:03:08 +0000 |
commit | 3de12533184ea13198de6c02fd83e331a894b075 (patch) | |
tree | c125a10b04197d830444b3db6f635b998d1a7dd0 | |
parent | 6a8029c2c93d51916ae9f424da2b4da38a838b75 (diff) |
mb/ocp: Use "if (!ptr)" in preference to "if (ptr == NULL)"
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Change-Id: Ie5fc0a8230cdcc24ad1d2d94cc6d019ff10aac48
Reviewed-on: https://review.coreboot.org/c/coreboot/+/67608
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jonathan Zhang <jonzhang@fb.com>
-rw-r--r-- | src/mainboard/ocp/deltalake/ramstage.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |