alsa: ucm - remove duplicate assignment

The data pointer is already set few lines before.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/670>
This commit is contained in:
Jaroslav Kysela 2021-12-16 10:55:18 +01:00
parent 2101078c22
commit 4d98c8bbf1

View file

@ -1092,8 +1092,6 @@ static void ucm_add_port_combination(
if (num == 1) { if (num == 1) {
/* To keep things simple and not worry about stacking controls, we only support hardware volumes on non-combination /* To keep things simple and not worry about stacking controls, we only support hardware volumes on non-combination
* ports. */ * ports. */
data = PA_DEVICE_PORT_DATA(port);
PA_HASHMAP_FOREACH_KV(profile, vol, is_sink ? dev->playback_volumes : dev->capture_volumes, state) { PA_HASHMAP_FOREACH_KV(profile, vol, is_sink ? dev->playback_volumes : dev->capture_volumes, state) {
pa_alsa_path *path = pa_alsa_path_synthesize(vol->mixer_elem, pa_alsa_path *path = pa_alsa_path_synthesize(vol->mixer_elem,
is_sink ? PA_ALSA_DIRECTION_OUTPUT : PA_ALSA_DIRECTION_INPUT); is_sink ? PA_ALSA_DIRECTION_OUTPUT : PA_ALSA_DIRECTION_INPUT);