From: Pierrick Bouvier Date: Thu, 19 Sep 2024 04:46:10 +0000 (-0700) Subject: hw/net: replace assert(0) with g_assert_not_reached() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b5df2514082905720849b945d1f999392eaf027f;p=qemu.git hw/net: replace assert(0) 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 Signed-off-by: Pierrick Bouvier Message-ID: <20240919044641.386068-4-pierrick.bouvier@linaro.org> Signed-off-by: Thomas Huth --- diff --git a/hw/net/i82596.c b/hw/net/i82596.c index 6cc8292a65..cd416a00ff 100644 --- a/hw/net/i82596.c +++ b/hw/net/i82596.c @@ -282,7 +282,7 @@ static void command_loop(I82596State *s) case CmdDump: case CmdDiagnose: printf("FIXME Command %d !!\n", cmd & 7); - assert(0); + g_assert_not_reached(); } /* update status */