From 0eeb7b0554d65b81281fbc06418674a536cd9daf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Mon, 13 Oct 2025 23:47:40 +0400 Subject: [PATCH] audio: drop needless error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The only reason it would fail to add the handler is if it's calling a stub. But this cannot happen as audio is only supported with system qemu. Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé --- audio/audio.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index 43db7380f0..155809dee7 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -1776,10 +1776,7 @@ static AudioState *audio_init(Audiodev *dev, Error **errp) } vmse = qemu_add_vm_change_state_handler (audio_vm_change_state_handler, s); - if (!vmse) { - dolog ("warning: Could not register change state handler\n" - "(Audio can continue looping even after stopping the VM)\n"); - } + assert(vmse != NULL); if (!object_property_try_add_child(get_audiodevs_root(), dev->id, OBJECT(s), errp)) { goto out;