]> git.proxmox.com Git - mirror_qemu.git/commitdiff
spapr.c: remove duplicated assert in spapr_memory_unplug_request()
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Tue, 2 Mar 2021 14:10:18 +0000 (11:10 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 9 Mar 2021 22:07:09 +0000 (09:07 +1100)
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>
hw/ppc/spapr.c

index aca3ef9d58257e140ec386215a276831ffec933a..b5798308321bbd3de1a7d6d2fa61f5d007b4a736 100644 (file)
@@ -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));
 }