audio/sdlaudio: Simplify the sdl_callback function
commit9399ef168377d9e7f2e33b1c2eb61751aa1b72fa
authorThomas Huth <thuth@redhat.com>
Tue, 5 Feb 2019 03:08:21 +0000 (5 04:08 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 28 Feb 2019 09:30:08 +0000 (28 10:30 +0100)
treecc16bfd8cc27b220f73b5ac5b0af145d04c59294
parent8a7816c4ac13e6ba61de2be1e4e93ed71bc26266
audio/sdlaudio: Simplify the sdl_callback function

At the end of the while-loop, either "samples" or "sdl->live" is zero, so
now that we've removed the semaphore code, the content of the while-loop
is always only executed once. Thus we can remove the while-loop now to
get rid of one indentation level here.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-id: 1549336101-17623-3-git-send-email-thuth@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/sdlaudio.c