ALSA: firewire: fix comparison to bool warning
PATCH 1/1 ALSA: firewire: fix comparison to bool warning
From: Kaixu Xia <[email protected]>
Fix the following coccicheck warning:
./sound/firewire/amdtp-stream.h:273:6-19: WARNING: Comparison to bool
Reported-by Tosk Robot <[email protected]>
Signed-off-by Kaixu Xia <[email protected]>
--- sound/firewire/amdtp-stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/firewire/amdtp-stream.h +1 -1
@@ -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 ; }
Signature · 1 line
2.20.0
Takashi Iwai
AppliedQuoted 9 lines · On Sat, 07 Nov 2020 17:13:31 +0100, [email protected] wrote:
From: Kaixu Xia <[email protected]>
Fix the following coccicheck warning:
./sound/firewire/amdtp-stream.h:273:6-19: WARNING: Comparison to bool
Reported-by Tosk Robot <[email protected]>Signed-off-by Kaixu Xia <[email protected]>
Thanks, applied.
Takashi
Quoted 20 lines
--- sound/firewire/amdtp-stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)sound/firewire/amdtp-stream.h +1
-1@@ -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 ; }Signature · 1 line
2.20.0
Quoted 11 lines · Takashi Iwai
Quoted 9 lines · On Sat, 07 Nov 2020 17:13:31 +0100, [email protected] wrote:
From: Kaixu Xia <[email protected]>
Fix the following coccicheck warning:
./sound/firewire/amdtp-stream.h:273:6-19: WARNING: Comparison to bool
Reported-by Tosk Robot <[email protected]>Signed-off-by Kaixu Xia <[email protected]>
The message seems not to reach my mailbox. Anyway:
Acked-by Takashi Sakamoto <[email protected]>
Quoted 22 lines
Thanks, applied.
Takashi
Quoted 17 lines
--- sound/firewire/amdtp-stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)sound/firewire/amdtp-stream.h +1
-1@@ -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 ; }
Quoted 2 lines
Quoted 2 lines
Signature · 1 line
2.20.0
Regards
Takashi Sakamoto