]> code.delx.au - pulseaudio/commitdiff
pa_xnew cannot fail -- that's what the x is in the name
authorLennart Poettering <lennart@poettering.net>
Wed, 4 Mar 2009 01:52:11 +0000 (02:52 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 4 Mar 2009 01:52:11 +0000 (02:52 +0100)
src/modules/module-solaris.c

index 783c2440010ce7894527a1102f92c76896a0ec9d..995b3c6316ef1a77fada13038904f37b18e2923b 100644 (file)
@@ -821,9 +821,7 @@ int pa__init(pa_module *m) {
         goto fail;
     }
 
-    if (!(u = pa_xnew0(struct userdata, 1)))
-        goto fail;
-
+    u = pa_xnew0(struct userdata, 1);
     u->sample_counter_lock = pa_mutex_new(FALSE, FALSE);
     u->written_bytes_lock = pa_mutex_new(FALSE, FALSE);