Skip to content

Commit

Permalink
media: cobalt: cobalt-omnitek.c: fix comparison to bool
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
dwlsalmeida authored and mchehab committed Aug 29, 2020
1 parent 97c6a99 commit 52cdded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/pci/cobalt/cobalt-omnitek.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 52cdded

Please sign in to comment.