migration: 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: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240919044641.386068-5-pierrick.bouvier@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
Pierrick Bouvier 2024-09-18 21:46:11 -07:00 committed by Thomas Huth
parent b5df251408
commit 0c79effdc7
3 changed files with 11 additions and 11 deletions

View file

@ -1765,19 +1765,19 @@ bool ram_write_tracking_available(void)
bool ram_write_tracking_compatible(void)
{
assert(0);
g_assert_not_reached();
return false;
}
int ram_write_tracking_start(void)
{
assert(0);
g_assert_not_reached();
return -1;
}
void ram_write_tracking_stop(void)
{
assert(0);
g_assert_not_reached();
}
#endif /* defined(__linux__) */