summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-03-04 02:52:11 +0100
committerLennart Poettering <lennart@poettering.net>2009-03-04 02:52:11 +0100
commitc8abe640406ab6dc28a9a478ab0090207ccfc273 (patch)
tree667d44438dc8a9220a47586679ca823566c18006
parent946d07211ba3ab814183b2112b89e557edb12159 (diff)
pa_xnew cannot fail -- that's what the x is in the name
-rw-r--r--src/modules/module-solaris.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/module-solaris.c b/src/modules/module-solaris.c
index 783c2440..995b3c63 100644
--- a/src/modules/module-solaris.c
+++ b/src/modules/module-solaris.c
@@ -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);