Skip to contentSkip to conversation

vl: remove dead code from set_memory_options

PATCH New Lei Chen 1 participant 1 message Mar 3, 2022

lore
Share & tools
lore

Lei Chen

author
#0 lore raw

PATCH 1/1 vl: remove dead code from set_memory_options

ram_size has already been set @sz before if statement, so we can remove the dead code.

---
 softmmu/vl.c | 4 ----
 1 file changed, 4 deletions(-)
softmmu/vl.c +0 -4
index 1fe028800f..adacbd7016 100644
@@ -2105,10 +2105,6 @@ static void set_memory_options(MachineClass *mc)
         sz = mc->fixup_ram_size(sz);
     }
     ram_size = sz;
-    if (ram_size != sz) {
-        error_report("ram size too large");
-        exit(EXIT_FAILURE);
-    }
 
     maxram_size = ram_size;
 
Signature · 1 line
2.27.0