summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPierrick Bouvier <pierrick.bouvier@linaro.org>2024-09-18 21:46:10 -0700
committerThomas Huth <thuth@redhat.com>2024-09-24 13:53:35 +0200
commitb5df2514082905720849b945d1f999392eaf027f (patch)
tree63164a18b3145c05926389a7d2c11b338649f50c
parent42bf363cc084871797fdb593b372770a7e48caa7 (diff)
downloadfocaccia-qemu-b5df2514082905720849b945d1f999392eaf027f.tar.gz
focaccia-qemu-b5df2514082905720849b945d1f999392eaf027f.zip
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 <richard.henderson@linaro.org>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-ID: <20240919044641.386068-4-pierrick.bouvier@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
-rw-r--r--hw/net/i82596.c2
1 files changed, 1 insertions, 1 deletions
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 */