From: Pierrick Bouvier Date: Thu, 19 Sep 2024 04:46:35 +0000 (-0700) Subject: hw/pci: remove return after g_assert_not_reached() X-Git-Tag: v9.2.0-rc0~72^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77e8012823aeb87aada7c6d5a542e175d48deb8c;p=thirdparty%2Fqemu.git hw/pci: remove return after g_assert_not_reached() This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-ID: <20240919044641.386068-29-pierrick.bouvier@linaro.org> Signed-off-by: Thomas Huth --- diff --git a/hw/pci/pci-stub.c b/hw/pci/pci-stub.c index c6950e21bd4..3397d0c82ea 100644 --- a/hw/pci/pci-stub.c +++ b/hw/pci/pci-stub.c @@ -47,13 +47,11 @@ void hmp_pcie_aer_inject_error(Monitor *mon, const QDict *qdict) MSIMessage pci_get_msi_message(PCIDevice *dev, int vector) { g_assert_not_reached(); - return (MSIMessage){}; } uint16_t pci_requester_id(PCIDevice *dev) { g_assert_not_reached(); - return 0; } /* Required by ahci.c */