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>
This commit is contained in:
Elyes Haouas 2022-09-13 10:14:27 +02:00 committed by Felix Held
parent 6a8029c2c9
commit 3de1253318
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {