alsa-sink: Check for after-avail is redundant
authorPeter Meerwald <p.meerwald@bct-electronic.com>
Thu, 23 Oct 2014 09:47:44 +0000 (11:47 +0200)
committerPeter Meerwald <p.meerwald@bct-electronic.com>
Tue, 28 Oct 2014 16:36:22 +0000 (17:36 +0100)
after-avail is always false at this point

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
src/modules/alsa/alsa-sink.c

index c8654fb..01c3a66 100644 (file)
@@ -648,7 +648,7 @@ static int mmap_write(struct userdata *u, pa_usec_t *sleep_usec, bool polled, bo
 
             if (PA_UNLIKELY((sframes = snd_pcm_mmap_commit(u->pcm_handle, offset, frames)) < 0)) {
 
-                if (!after_avail && (int) sframes == -EAGAIN)
+                if ((int) sframes == -EAGAIN)
                     break;
 
                 if ((r = try_recover(u, "snd_pcm_mmap_commit", (int) sframes)) == 0)