qom: remove return after g_assert_not_reached()
authorPierrick Bouvier <pierrick.bouvier@linaro.org>
Thu, 19 Sep 2024 04:46:39 +0000 (21:46 -0700)
committerThomas Huth <thuth@redhat.com>
Tue, 24 Sep 2024 11:53:35 +0000 (13:53 +0200)
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-33-pierrick.bouvier@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
qom/object.c

index 157a45c5f8b2ab3d7117e6c3424fe6a036135658..28c5b66eab525196c256e9dd8175bd4990a64695 100644 (file)
@@ -2079,7 +2079,6 @@ const char *object_get_canonical_path_component(const Object *obj)
 
     /* obj had a parent but was not a child, should never happen */
     g_assert_not_reached();
-    return NULL;
 }
 
 char *object_get_canonical_path(const Object *obj)