mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
alsa: Remove a redundant check
If mixer_handle is not NULL, then hctl_handle won't be NULL either. The redundant check was confusing, because it looked like we would leak the mixer_handle if mixer_handle is non-NULL and hctl_handle is NULL.
This commit is contained in:
parent
3f21c21628
commit
9271c11e68
1 changed files with 2 additions and 2 deletions
|
|
@ -3776,7 +3776,7 @@ static void mapping_paths_probe(pa_alsa_mapping *m, pa_alsa_profile *profile,
|
||||||
pa_assert(pcm_handle);
|
pa_assert(pcm_handle);
|
||||||
|
|
||||||
mixer_handle = pa_alsa_open_mixer_for_pcm(pcm_handle, NULL, &hctl_handle);
|
mixer_handle = pa_alsa_open_mixer_for_pcm(pcm_handle, NULL, &hctl_handle);
|
||||||
if (!mixer_handle || !hctl_handle) {
|
if (!mixer_handle) {
|
||||||
/* Cannot open mixer, remove all entries */
|
/* Cannot open mixer, remove all entries */
|
||||||
pa_hashmap_remove_all(ps->paths);
|
pa_hashmap_remove_all(ps->paths);
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue