projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a6a071
)
ALSA: firewire: fix comparison to bool warning
author
Kaixu Xia
<kaixuxia@tencent.com>
Sat, 7 Nov 2020 16:13:31 +0000
(
00:13
+0800)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 10 Nov 2020 08:06:10 +0000
(09:06 +0100)
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>
sound/firewire/amdtp-stream.h
patch
|
blob
|
history
diff --git
a/sound/firewire/amdtp-stream.h
b/sound/firewire/amdtp-stream.h
index 2ceb57d1d58ee45013715b52ad7e9e66bddeefed..a3daa1f2c1c437a644e81da4a2eb802a63bc6b87 100644
(file)
--- a/
sound/firewire/amdtp-stream.h
+++ b/
sound/firewire/amdtp-stream.h
@@
-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;
}