mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
audio: return Error ** from audio_state_by_name
Remove duplicate error formatting code. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
3
ui/vnc.c
3
ui/vnc.c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user