Rather than returning 0, just return an error, since sandbox is not used
with PXE at present.

Signed-off-by: Simon Glass <s...@chromium.org>
---

(no changes since v9)

Changes in v9:
- Add new patch to drop sandbox PXE architecture

 lib/efi_loader/efi_helper.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/efi_loader/efi_helper.c b/lib/efi_loader/efi_helper.c
index ab5678eb66c..bf96f61d3d0 100644
--- a/lib/efi_loader/efi_helper.c
+++ b/lib/efi_loader/efi_helper.c
@@ -91,8 +91,6 @@ int efi_get_pxe_arch(void)
                return 0x19;
        else if (IS_ENABLED(CONFIG_ARCH_RV64I))
                return 0x1b;
-       else if (IS_ENABLED(CONFIG_SANDBOX))
-               return 0;       /* not used */
 
        return -EINVAL;
 }
-- 
2.34.1

Reply via email to