ALSA: firewire: fix comparison to bool warning

Fix the following coccicheck warning:

./sound/firewire/amdtp-stream.h:273:6-19: WARNING: Comparison to bool

Reported-by: Tosk Robot <tencent_os_robot@tencent.com>
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Link: https://lore.kernel.org/r/1604765611-8209-1-git-send-email-kaixuxia@tencent.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Kaixu Xia 2020-11-08 00:13:31 +08:00 committed by Takashi Iwai
parent 1a6a071f51
commit 8461352ddf

View File

@ -270,7 +270,7 @@ static inline bool amdtp_stream_wait_callback(struct amdtp_stream *s,
unsigned int timeout)
{
return wait_event_timeout(s->callback_wait,
s->callbacked == true,
s->callbacked,
msecs_to_jiffies(timeout)) > 0;
}