diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-22 17:29:19 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-03 10:29:39 +0200 |
commit | 176adafca72ecc35e7f1f011deb52ca1ae091df6 (patch) | |
tree | 6f31af462366329651714f75ea0fd107215b2265 /ui/vnc.c | |
parent | f6061733a96314ccb732efe6c91357d66f8970af (diff) | |
download | qemu-176adafca72ecc35e7f1f011deb52ca1ae091df6.zip qemu-176adafca72ecc35e7f1f011deb52ca1ae091df6.tar.gz qemu-176adafca72ecc35e7f1f011deb52ca1ae091df6.tar.bz2 |
audio: return Error ** from audio_state_by_name
Remove duplicate error formatting code.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'ui/vnc.c')
-rw-r--r-- | ui/vnc.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -4181,9 +4181,8 @@ void vnc_display_open(const char *id, Error **errp) audiodev = qemu_opt_get(opts, "audiodev"); if (audiodev) { - vd->audio_state = audio_state_by_name(audiodev); + vd->audio_state = audio_state_by_name(audiodev, errp); if (!vd->audio_state) { - error_setg(errp, "Audiodev '%s' not found", audiodev); goto fail; } } |