From b7e763bab403f464d8d778aa671b61fc5c74887c Mon Sep 17 00:00:00 2001 From: Peter Meerwald Date: Thu, 23 Oct 2014 11:47:44 +0200 Subject: [PATCH] alsa-sink: Check for after-avail is redundant after-avail is always false at this point Signed-off-by: Peter Meerwald --- src/modules/alsa/alsa-sink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/alsa/alsa-sink.c b/src/modules/alsa/alsa-sink.c index c8654fbc3..01c3a666d 100644 --- a/src/modules/alsa/alsa-sink.c +++ b/src/modules/alsa/alsa-sink.c @@ -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)