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:
Родитель
97c6a99bd5
Коммит
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));
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче