From b43c51145920a971c29d898762e0b5edaf9050f5 Mon Sep 17 00:00:00 2001 From: hubenchang Date: Mon, 10 Aug 2020 20:22:07 +0800 Subject: [PATCH] alsa:remove the define of shadow variables the void* state had been defined before --- src/modules/alsa/alsa-sink.c | 1 - src/modules/alsa/alsa-source.c | 1 - 2 files changed, 2 deletions(-) diff --git a/src/modules/alsa/alsa-sink.c b/src/modules/alsa/alsa-sink.c index 3fe429c80..68cd92784 100644 --- a/src/modules/alsa/alsa-sink.c +++ b/src/modules/alsa/alsa-sink.c @@ -2600,7 +2600,6 @@ pa_sink *pa_alsa_sink_new(pa_module *m, pa_modargs *ma, const char*driver, pa_ca if (u->ucm_context) { pa_device_port *port; - void *state; unsigned h_prio = 0; PA_HASHMAP_FOREACH(port, u->sink->ports, state) { if (!h_prio || port->priority > h_prio) diff --git a/src/modules/alsa/alsa-source.c b/src/modules/alsa/alsa-source.c index b1149c675..2c7c7c204 100644 --- a/src/modules/alsa/alsa-source.c +++ b/src/modules/alsa/alsa-source.c @@ -2286,7 +2286,6 @@ pa_source *pa_alsa_source_new(pa_module *m, pa_modargs *ma, const char*driver, p if (u->ucm_context) { pa_device_port *port; - void *state; unsigned h_prio = 0; PA_HASHMAP_FOREACH(port, u->source->ports, state) { if (!h_prio || port->priority > h_prio)