soc/amd/common/block/cpu/noncar/memmap: simplify return value check
commit883a4c2b22e59f018b789fe6a0e1e52cc0443519
authorFelix Held <felix-coreboot@felixheld.de>
Wed, 29 Mar 2023 13:54:26 +0000 (29 15:54 +0200)
committerFelix Held <felix-coreboot@felixheld.de>
Thu, 30 Mar 2023 15:28:56 +0000 (30 15:28 +0000)
treea7da9c85ef4971ea5855d973a930426b563bc2a5
parentddf8d19fc245b0230a2715bbf556ee2e8baef404
soc/amd/common/block/cpu/noncar/memmap: simplify return value check

Since the return value of the fsp_find_range_hob call is only used in
one location, move the call and return value check into the if condition
block to not need the status variable.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I4b9e9251368b86382dc4e050cf176db79dbfb230
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74081
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
src/soc/amd/common/block/cpu/noncar/memmap.c