diff options
Diffstat (limited to 'src/soc/amd')
-rw-r--r-- | src/soc/amd/common/block/cpu/noncar/memmap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/soc/amd/common/block/cpu/noncar/memmap.c b/src/soc/amd/common/block/cpu/noncar/memmap.c index 2661914876..097637ec21 100644 --- a/src/soc/amd/common/block/cpu/noncar/memmap.c +++ b/src/soc/amd/common/block/cpu/noncar/memmap.c @@ -38,7 +38,6 @@ void smm_region(uintptr_t *start, size_t *size) static int once; static uintptr_t smm_start; static size_t smm_size; - int status; *start = smm_start; *size = smm_size; @@ -46,9 +45,8 @@ void smm_region(uintptr_t *start, size_t *size) return; struct range_entry tseg; - status = fsp_find_range_hob(&tseg, AMD_FSP_TSEG_HOB_GUID.b); - if (status < 0) { + if (fsp_find_range_hob(&tseg, AMD_FSP_TSEG_HOB_GUID.b) < 0) { printk(BIOS_ERR, "unable to find TSEG HOB\n"); return; } |