mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
hw/mem/memory-device: Remove legacy_align from memory_device_pre_plug()
'legacy_align' is always NULL, remove it, simplifying memory_device_pre_plug(). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <20240617071118.60464-16-philmd@linaro.org>
This commit is contained in:
parent
d4fdb05b0e
commit
0e0bf77d28
5 changed files with 8 additions and 13 deletions
|
@ -1395,8 +1395,7 @@ static void pc_hv_balloon_pre_plug(HotplugHandler *hotplug_dev,
|
|||
{
|
||||
/* The vmbus handler has no hotplug handler; we should never end up here. */
|
||||
g_assert(!dev->hotplugged);
|
||||
memory_device_pre_plug(MEMORY_DEVICE(dev), MACHINE(hotplug_dev), NULL,
|
||||
errp);
|
||||
memory_device_pre_plug(MEMORY_DEVICE(dev), MACHINE(hotplug_dev), errp);
|
||||
}
|
||||
|
||||
static void pc_hv_balloon_plug(HotplugHandler *hotplug_dev,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue