[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 20/44] hw/ppc: replace assert(false) with g_assert_not_reached()
From: |
Thomas Huth |
Subject: |
[PULL 20/44] hw/ppc: replace assert(false) with g_assert_not_reached() |
Date: |
Wed, 25 Sep 2024 13:10:01 +0200 |
From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
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 <richard.henderson@linaro.org>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-ID: <20240919044641.386068-13-pierrick.bouvier@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
hw/ppc/spapr_events.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/ppc/spapr_events.c b/hw/ppc/spapr_events.c
index cb0eeee587..38ac1cb786 100644
--- a/hw/ppc/spapr_events.c
+++ b/hw/ppc/spapr_events.c
@@ -645,7 +645,7 @@ static void spapr_hotplug_req_event(uint8_t hp_id, uint8_t
hp_action,
/* we shouldn't be signaling hotplug events for resources
* that don't support them
*/
- g_assert(false);
+ g_assert_not_reached();
return;
}
--
2.46.0
- [PULL 10/44] hw/arm: replace assert(0) with g_assert_not_reached(), (continued)
- [PULL 10/44] hw/arm: replace assert(0) with g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 07/44] tests/functional: Convert the r2d sh4 Avocado test, Thomas Huth, 2024/09/25
- [PULL 12/44] migration: replace assert(0) with g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 13/44] qobject: replace assert(0) with g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 14/44] target/ppc: replace assert(0) with g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 15/44] block: replace assert(false) with g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 17/44] hw/net: replace assert(false) with g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 16/44] hw/hyperv: replace assert(false) with g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 18/44] hw/nvme: replace assert(false) with g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 19/44] hw/pci: replace assert(false) with g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 20/44] hw/ppc: replace assert(false) with g_assert_not_reached(),
Thomas Huth <=
- [PULL 21/44] migration: replace assert(false) with g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 22/44] target/i386/kvm: replace assert(false) with g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 23/44] accel/tcg: remove break after g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 24/44] block: remove break after g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 25/44] hw/acpi: remove break after g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 26/44] hw/net: remove break after g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 27/44] hw/scsi: remove break after g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 28/44] hw/tpm: remove break after g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 29/44] target/arm: remove break after g_assert_not_reached(), Thomas Huth, 2024/09/25
- [PULL 33/44] include/qemu: remove return after g_assert_not_reached(), Thomas Huth, 2024/09/25