Skip to contentSkip to conversation

media: cobalt: cobalt-omnitek.c: fix comparison to bool

PATCH In review Daniel W. S. Almeida 1 participant 1 message Aug 7, 2020

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

PATCH 5/20 media: cobalt: cobalt-omnitek.c: fix comparison to bool

From: "Daniel W. S. Almeida" <[email protected]>

Fix the following coccinelle report:

drivers/media/pci/cobalt/cobalt-omnitek.c:119:5-19:
WARNING: Comparison to bool

By using "!cond" instead of "cond == false"

Found using - Coccinelle (http://coccinelle.lip6.fr)

---
 drivers/media/pci/cobalt/cobalt-omnitek.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/pci/cobalt/cobalt-omnitek.c +1 -1
index 4c137453e679..01b82a2e8d33 100644
@@ -116,7 +116,7 @@ void omni_sg_dma_abort_channel(struct cobalt_stream *s)
 {
 	struct cobalt *cobalt = s->cobalt;
 
-	if (is_dma_done(s) == false)
+	if (!is_dma_done(s))
 		iowrite32(ABORT, CS_REG(s->dma_channel));
 }
 
Signature · 1 line
2.28.0