]> git.ipfire.org Git - thirdparty/qemu.git/commit
audio: simplify audio_driver_init()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 13 Oct 2025 19:38:45 +0000 (23:38 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 30 Oct 2025 09:30:06 +0000 (13:30 +0400)
commitebf3a6e856358ce515dda5a36ff05f8116a4341f
tree5d0350982c739bd1da7dbbe6b6ab54004f1af14f
parent952742ec6b257e60337042e25deb42a3fd2a40f3
audio: simplify audio_driver_init()

Catch and return from error early to avoid indentations and ease the
flow & return a bool for success value. All driver init() calls have
been checked to set errp on error.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
audio/audio.c