From: Takashi Iwai Date: Mon, 14 Feb 2005 15:48:14 +0000 (+0000) Subject: Code clean-up X-Git-Tag: v1.0.9rc1~20 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=cf6e569bd70af148c5a575e135e066ea4fb28676;p=alsa-lib.git Code clean-up Small code clean-up --- 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)