summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorDaniel W. S. Almeida <dwlsalmeida@gmail.com>2020-08-07 10:35:32 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-08-29 07:47:23 +0200
commit52cdded09b861182bb5033bf9d308cb6fcd4d49f (patch)
tree90f556a138771b55cf50a43182ff200679ee273a /drivers/media/pci
parent97c6a99bd5c26a8cbae1c68f26af62991380ede3 (diff)
downloadlinux-stable-52cdded09b861182bb5033bf9d308cb6fcd4d49f.tar.gz
linux-stable-52cdded09b861182bb5033bf9d308cb6fcd4d49f.tar.bz2
linux-stable-52cdded09b861182bb5033bf9d308cb6fcd4d49f.zip
media: cobalt: cobalt-omnitek.c: fix comparison to bool
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@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r--drivers/media/pci/cobalt/cobalt-omnitek.c2
1 files changed, 1 insertions, 1 deletions
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));
}