Skip to contentSkip to conversation

ALSA: firewire: fix comparison to bool warning

PATCH Applied [email protected] 3 participants 3 messages Nov 7, 2020 – Nov 10, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

---
 sound/firewire/amdtp-stream.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/firewire/amdtp-stream.h +1 -1
index 2ceb57d1d58e..a3daa1f2c1c4 100644
@@ -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
Applied
#1 lore raw
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

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
index 2ceb57d1d58e..a3daa1f2c1c4 100644
@@ -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
maintainer Acked-by
#2 lore raw
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

The message seems not to reach my mailbox. Anyway:

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
index 2ceb57d1d58e..a3daa1f2c1c4 100644
@@ -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