[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20200807083548.204360-5-dwlsalmeida@gmail.com>
Date: Fri, 7 Aug 2020 05:35:32 -0300
From: "Daniel W. S. Almeida" <dwlsalmeida@...il.com>
To: Hans Verkuil <hverkuil-cisco@...all.nl>
Cc: skhan@...uxfoundation.org,
"Daniel W. S. Almeida" <dwlsalmeida@...il.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
linux-media@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 05/20] media: cobalt: cobalt-omnitek.c: fix comparison to bool
From: "Daniel W. S. Almeida" <dwlsalmeida@...il.com>
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)
Signed-off-by: Daniel W. S. Almeida <dwlsalmeida@...il.com>
---
drivers/media/pci/cobalt/cobalt-omnitek.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/cobalt/cobalt-omnitek.c b/drivers/media/pci/cobalt/cobalt-omnitek.c
index 4c137453e679..01b82a2e8d33 100644
--- a/drivers/media/pci/cobalt/cobalt-omnitek.c
+++ b/drivers/media/pci/cobalt/cobalt-omnitek.c
@@ -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));
}
--
2.28.0
Powered by blists - more mailing lists