diff options
| author | Ani Sinha <ani@anisinha.ca> | 2021-12-29 13:27:53 +0530 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2022-01-07 19:30:13 -0500 |
| commit | 784802689f84b716de1fbdd2cef30e303b73b3e8 (patch) | |
| tree | 7c0e20c5c667189a51ef7448c09873330d2a93bc /hw/net/virtio-net.c | |
| parent | c8adb4d222c42951a9d0367e5f5d4e1f5e2c9ad7 (diff) | |
| download | focaccia-qemu-784802689f84b716de1fbdd2cef30e303b73b3e8.tar.gz focaccia-qemu-784802689f84b716de1fbdd2cef30e303b73b3e8.zip | |
acpihp: simplify acpi_pcihp_disable_root_bus
Get rid of the static variable that keeps track of whether hotplug has been disabled on the root pci bus. Simply use qbus_is_hotpluggable() api to perform the same check. This eliminates additional if conditional and simplifies the function. Signed-off-by: Ani Sinha <ani@anisinha.ca> Message-Id: <1640764674-7784-1-git-send-email-ani@anirban.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions