mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-15 17:43:12 -04:00
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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
97c6a99bd5
commit
52cdded09b
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user