:: commit bb9ffd74d2f47edc84412df8ab04073e7c7b925b

Kacper Słomiński <kacper.slominski72@gmail.com> — 2024-07-14 23:33

parents: 9faa0e0f0f

protos/linux_risc: Fix warning in table installation code

diff --git a/common/protos/linux_risc.c b/common/protos/linux_risc.c
index e5c4b0af..607f58e0 100644
--- a/common/protos/linux_risc.c
+++ b/common/protos/linux_risc.c
@@ -168,7 +168,7 @@ void *prepare_device_tree_blob(char *config, char *cmdline) {
         rsv->next = 0;
 
         EFI_GUID memreserve_table_guid = {0x888eb0c6, 0x8ede, 0x4ff5, {0xa8, 0xf0, 0x9a, 0xee, 0x5c, 0xb9, 0x77, 0xc2}};
-        EFI_STATUS ret = gBS->InstallConfigurationTable(&memreserve_table_guid, rsv);
+        ret = gBS->InstallConfigurationTable(&memreserve_table_guid, rsv);
 
         if (ret != EFI_SUCCESS) {
             panic(true, "linux: failed to install memory reservation configuration table: '%x'", ret);
tab: 248 wrap: offon