From: Pierrick Bouvier Date: Thu, 19 Sep 2024 04:46:19 +0000 (-0700) Subject: hw/ppc: replace assert(false) with g_assert_not_reached() X-Git-Tag: v9.2.0-rc0~72^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e5a1cc07050d8ad4995192b383a5b9252718242;p=thirdparty%2Fqemu.git hw/ppc: replace assert(false) with 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 Reviewed-by: Daniel Henrique Barboza Signed-off-by: Pierrick Bouvier Message-ID: <20240919044641.386068-13-pierrick.bouvier@linaro.org> Signed-off-by: Thomas Huth --- diff --git a/hw/ppc/spapr_events.c b/hw/ppc/spapr_events.c index cb0eeee5874..38ac1cb7866 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; }