summaryrefslogtreecommitdiff
path: root/src/mixer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mixer.c')
-rw-r--r--src/mixer.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mixer.c b/src/mixer.c
index 5b07f15..56e2293 100644
--- a/src/mixer.c
+++ b/src/mixer.c
@@ -244,10 +244,7 @@ struct _snd_mixer_selem_id {
int
snd_mixer_selem_id_malloc(snd_mixer_selem_id_t **ptr)
{
- if (!(*ptr = calloc(1, sizeof(**ptr))))
- return -1;
-
- return 0;
+ return ((*ptr = calloc(1, sizeof(**ptr))) ? 0 : -1);
}
void