diff options
author | Daniel Henrique Barboza <danielhb413@gmail.com> | 2021-03-02 11:10:18 -0300 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2021-03-10 09:07:09 +1100 |
commit | 41c8ad3d920d6f1741b34bfdfaa72b43b45209b5 (patch) | |
tree | ca37ec29ee9b39bc529c0aee8b2988ef661cc8f1 /hw/ppc | |
parent | 09db2216aa06be8bacd0101723d9c257f75c803f (diff) | |
download | qemu-41c8ad3d920d6f1741b34bfdfaa72b43b45209b5.zip qemu-41c8ad3d920d6f1741b34bfdfaa72b43b45209b5.tar.gz qemu-41c8ad3d920d6f1741b34bfdfaa72b43b45209b5.tar.bz2 |
spapr.c: remove duplicated assert in spapr_memory_unplug_request()
We are asserting the existence of the first DRC LMB after sending unplug
requests to all LMBs of the DIMM, where every DRC is being asserted
inside the loop. This means that the first DRC is being asserted twice.
Remove the duplicated assert.
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20210302141019.153729-2-danielhb413@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc')
-rw-r--r-- | hw/ppc/spapr.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index aca3ef9..b579830 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -3703,7 +3703,6 @@ static void spapr_memory_unplug_request(HotplugHandler *hotplug_dev, drc = spapr_drc_by_id(TYPE_SPAPR_DRC_LMB, addr_start / SPAPR_MEMORY_BLOCK_SIZE); - g_assert(drc); spapr_hotplug_req_remove_by_count_indexed(SPAPR_DR_CONNECTOR_TYPE_LMB, nr_lmbs, spapr_drc_index(drc)); } |