alsa:remove the define of shadow variables

the void* state had been defined before
This commit is contained in:
hubenchang 2020-08-10 20:22:07 +08:00 committed by Plan C
parent 90a6c5ef07
commit b43c511459
2 changed files with 0 additions and 2 deletions

View file

@ -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)

View file

@ -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)