Revert "alsa-mixer: Add a couple of assertions"
authorDavid Henningsson <david.henningsson@canonical.com>
Fri, 28 Jun 2013 14:16:22 +0000 (16:16 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Fri, 28 Jun 2013 14:16:22 +0000 (16:16 +0200)
This reverts commit 2613e4c74733e67d56af165df4637bf902b08508.

Please don't replace correct NULL pointer checks with assertions.

src/modules/alsa/alsa-mixer.c

index b2f6c2e..f4410d7 100644 (file)
@@ -4530,9 +4530,10 @@ void pa_alsa_path_set_add_ports(
     pa_alsa_path *path;
     void *state;
 
-    pa_assert(ps);
     pa_assert(ports);
-    pa_assert(core);
+
+    if (!ps)
+        return;
 
     PA_HASHMAP_FOREACH(path, ps->paths, state) {
         if (!path->settings || !path->settings->next) {