]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Code clean-up
authorTakashi Iwai <tiwai@suse.de>
Mon, 14 Feb 2005 15:48:14 +0000 (15:48 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 14 Feb 2005 15:48:14 +0000 (15:48 +0000)
Small code clean-up

src/pcm/pcm_null.c

index bd16807ec3aef73f7da76c45183235d784f6a9a8..64148bdb8695b1b633561b3ec6650332a05f889d 100644 (file)
@@ -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)