From 1aa094a9af369cd1b82374c6b6b2b2122f14112a Mon Sep 17 00:00:00 2001 From: Felix Held Date: Wed, 29 Mar 2023 15:58:36 +0200 Subject: drivers/intel/fsp2_0/hand_off_block: use cb_err in fsp_find_range_hob Use enum cb_err as return value of fsp_find_range_hob instead of using the raw -1 and 0 values. Also update the call sites accordingly. Signed-off-by: Felix Held Change-Id: Id6c9f69a886f53868f1ef543c8fa04be95381f53 Reviewed-on: https://review.coreboot.org/c/coreboot/+/74082 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Felix Singer Reviewed-by: Matt DeVillier Reviewed-by: Pratikkumar V Prajapati Reviewed-by: Fred Reitberger --- src/soc/amd/common/block/cpu/noncar/memmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/amd/common/block/cpu/noncar') diff --git a/src/soc/amd/common/block/cpu/noncar/memmap.c b/src/soc/amd/common/block/cpu/noncar/memmap.c index 097637ec21..ef87318183 100644 --- a/src/soc/amd/common/block/cpu/noncar/memmap.c +++ b/src/soc/amd/common/block/cpu/noncar/memmap.c @@ -46,7 +46,7 @@ void smm_region(uintptr_t *start, size_t *size) struct range_entry tseg; - if (fsp_find_range_hob(&tseg, AMD_FSP_TSEG_HOB_GUID.b) < 0) { + if (fsp_find_range_hob(&tseg, AMD_FSP_TSEG_HOB_GUID.b) != CB_SUCCESS) { printk(BIOS_ERR, "unable to find TSEG HOB\n"); return; } -- cgit v1.2.3