ALSA: pcm: use exit controlled loop in snd_pcm_playback_silence()
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Fri, 5 May 2023 15:52:44 +0000 (17:52 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 5 May 2023 16:23:53 +0000 (18:23 +0200)
commitee2dd703470242f1672403e83f827391afeca808
tree3f7332d3ebd1541864535e69c8547fc04ed0b592
parent6ffa6f397e80bc196ed554e4dabfe43ecc0fe7c1
ALSA: pcm: use exit controlled loop in snd_pcm_playback_silence()

We already know that `frames` is greater than zero, because we just
checked it. So we don't need to check the loop condition on the first
iteration.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link: https://lore.kernel.org/r/20230505155244.2312199-7-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_lib.c