]> code.delx.au - pulseaudio/blobdiff - src/modules/alsa/alsa-mixer.c
alsa: Remove a redundant check
[pulseaudio] / src / modules / alsa / alsa-mixer.c
index 99de0ec1e05915d2449f32bcf43c5e13e8a8ccf0..4357e52b30d73f8873e4381578e2a90b0b03747a 100644 (file)
@@ -3776,8 +3776,8 @@ static void mapping_paths_probe(pa_alsa_mapping *m, pa_alsa_profile *profile,
     pa_assert(pcm_handle);
 
     mixer_handle = pa_alsa_open_mixer_for_pcm(pcm_handle, NULL, &hctl_handle);
-    if (!mixer_handle || !hctl_handle) {
-         /* Cannot open mixer, remove all entries */
+    if (!mixer_handle) {
+        /* Cannot open mixer, remove all entries */
         pa_hashmap_remove_all(ps->paths);
         return;
     }