]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: rate: Fix compile warning wrt bit ops and comparison
authorTakashi Iwai <tiwai@suse.de>
Mon, 11 May 2020 14:27:31 +0000 (16:27 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 11 May 2020 14:33:46 +0000 (16:33 +0200)
commitc04d7bbd6cbe7db23b2dc7fbbb11fd845f648a3c
tree7d61cbaf0963d9e1bf84c6816006247f8f6ceab6
parent76c098bf6e51ee37a632db54c4e61670206f0c57
pcm: rate: Fix compile warning wrt bit ops and comparison

We've got a gcc warning:
  pcm_rate.c: In function ‘snd_pcm_rate_drain’:
  pcm_rate.c:1090:19: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
     if (pcm->mode & SND_PCM_NONBLOCK != 0) {
                   ^

Drop the zero comparison for fixing the warning and for simplicity.

Fixes: 29041c522071 ("fix infinite draining of the rate plugin in SND_PCM_NONBLOCK mode")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_rate.c