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 /audio/audio.h | |
parent | f6061733a96314ccb732efe6c91357d66f8970af (diff) |
audio: return Error ** from audio_state_by_name
Remove duplicate error formatting code.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'audio/audio.h')
-rw-r--r-- | audio/audio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio.h b/audio/audio.h index 01bdc567fb..e0c13b5dcd 100644 --- a/audio/audio.h +++ b/audio/audio.h @@ -174,7 +174,7 @@ bool audio_init_audiodevs(void); void audio_help(void); void audio_legacy_help(void); -AudioState *audio_state_by_name(const char *name); +AudioState *audio_state_by_name(const char *name, Error **errp); const char *audio_get_id(QEMUSoundCard *card); #define DEFINE_AUDIO_PROPERTIES(_s, _f) \ |