[PATCH 04/11] audio: remove unused #define AUDIO_STRINGIFY

Volker Rümelin posted 11 patches 3 years, 1 month ago
Maintainers: Gerd Hoffmann <kraxel@redhat.com>, Christian Schoenebeck <qemu_oss@crudebyte.com>
There is a newer version of this series
[PATCH 04/11] audio: remove unused #define AUDIO_STRINGIFY
Posted by Volker Rümelin 3 years, 1 month ago
Remove the unused #define AUDIO_STRINGIFY. It was last used before
commit 470bcabd8f ("audio: Replace AUDIO_FUNC with __func__").

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
---
 audio/audio_int.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/audio/audio_int.h b/audio/audio_int.h
index e87ce014a0..4632cdf9cc 100644
--- a/audio/audio_int.h
+++ b/audio/audio_int.h
@@ -294,9 +294,6 @@ static inline size_t audio_ring_posb(size_t pos, size_t dist, size_t len)
 #define ldebug(fmt, ...) (void)0
 #endif
 
-#define AUDIO_STRINGIFY_(n) #n
-#define AUDIO_STRINGIFY(n) AUDIO_STRINGIFY_(n)
-
 typedef struct AudiodevListEntry {
     Audiodev *dev;
     QSIMPLEQ_ENTRY(AudiodevListEntry) next;
-- 
2.35.3


Re: [PATCH 04/11] audio: remove unused #define AUDIO_STRINGIFY
Posted by Thomas Huth 3 years, 1 month ago
On 18/12/2022 18.15, Volker Rümelin wrote:
> Remove the unused #define AUDIO_STRINGIFY. It was last used before
> commit 470bcabd8f ("audio: Replace AUDIO_FUNC with __func__").
> 
> Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
> ---
>   audio/audio_int.h | 3 ---
>   1 file changed, 3 deletions(-)
> 
> diff --git a/audio/audio_int.h b/audio/audio_int.h
> index e87ce014a0..4632cdf9cc 100644
> --- a/audio/audio_int.h
> +++ b/audio/audio_int.h
> @@ -294,9 +294,6 @@ static inline size_t audio_ring_posb(size_t pos, size_t dist, size_t len)
>   #define ldebug(fmt, ...) (void)0
>   #endif
>   
> -#define AUDIO_STRINGIFY_(n) #n
> -#define AUDIO_STRINGIFY(n) AUDIO_STRINGIFY_(n)
> -
>   typedef struct AudiodevListEntry {
>       Audiodev *dev;
>       QSIMPLEQ_ENTRY(AudiodevListEntry) next;

Reviewed-by: Thomas Huth <thuth@redhat.com>


Re: [PATCH 04/11] audio: remove unused #define AUDIO_STRINGIFY
Posted by Philippe Mathieu-Daudé 3 years, 1 month ago
On 18/12/22 18:15, Volker Rümelin wrote:
> Remove the unused #define AUDIO_STRINGIFY. It was last used before
> commit 470bcabd8f ("audio: Replace AUDIO_FUNC with __func__").
> 
> Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
> ---
>   audio/audio_int.h | 3 ---
>   1 file changed, 3 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>