From cf6e569bd70af148c5a575e135e066ea4fb28676 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 14 Feb 2005 15:48:14 +0000 Subject: [PATCH] Code clean-up Small code clean-up --- src/pcm/pcm_null.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/pcm/pcm_null.c b/src/pcm/pcm_null.c index bd16807e..64148bdb 100644 --- a/src/pcm/pcm_null.c +++ b/src/pcm/pcm_null.c @@ -244,12 +244,7 @@ static snd_pcm_sframes_t snd_pcm_null_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset ATTRIBUTE_UNUSED, snd_pcm_uframes_t size) { - snd_pcm_sframes_t res; - - res = snd_pcm_null_forward(pcm, size); - if (res < 0) - return res; - return res; + return snd_pcm_null_forward(pcm, size); } static snd_pcm_sframes_t snd_pcm_null_avail_update(snd_pcm_t *pcm) -- 2.47.1