diff options
author | Philippe Mathieu-Daudé | 2020-12-10 23:35:06 +0100 |
---|---|---|
committer | Gerd Hoffmann | 2020-12-15 09:23:14 +0100 |
commit | ab32b78cd1b3b31950c4332f0fa8b192295d77fd (patch) | |
tree | f7186a5eb53fdb0b3c657691d33d3fa5edcf6d3a /audio | |
parent | cs4231: Get rid of empty property array (diff) | |
download | qemu-ab32b78cd1b3b31950c4332f0fa8b192295d77fd.tar.gz qemu-ab32b78cd1b3b31950c4332f0fa8b192295d77fd.tar.xz qemu-ab32b78cd1b3b31950c4332f0fa8b192295d77fd.zip |
audio: Simplify audio_bug() removing old code
This code (introduced in commit 1d14ffa97ea, Oct 2005)
is likely unused since years. Time to remove it. If
the condition is true, simply call abort().
Suggested-by: Gerd Hoffmann <gerd@kraxel.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20201210223506.263709-1-philmd@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audio.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/audio/audio.c b/audio/audio.c index a213409270..0fdb808d6a 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -104,9 +104,6 @@ const struct mixeng_volume nominal_volume = { static bool legacy_config = true; -#ifdef AUDIO_IS_FLAWLESS_AND_NO_CHECKS_ARE_REQURIED -#error No its not -#else int audio_bug (const char *funcname, int cond) { if (cond) { @@ -119,25 +116,11 @@ int audio_bug (const char *funcname, int cond) AUD_log (NULL, "I am sorry\n"); } AUD_log (NULL, "Context:\n"); - -#if defined AUDIO_BREAKPOINT_ON_BUG -# if defined HOST_I386 -# if defined __GNUC__ - __asm__ ("int3"); -# elif defined _MSC_VER - _asm _emit 0xcc; -# else - abort (); -# endif -# else - abort (); -# endif -#endif + abort(); } return cond; } -#endif static inline int audio_bits_to_index (int bits) { |