diff options
author | Daniel W. S. Almeida <dwlsalmeida@gmail.com> | 2020-08-07 11:35:34 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-08-29 08:48:14 +0300 |
commit | 333b90fb42f0debe613c48f2f8d307f1c805e43b (patch) | |
tree | 6434114532301c3d0900f32209be8200c78ae886 /drivers/media/test-drivers | |
parent | 10e639041e003eadd2309bd332c03f83cbcdf0ca (diff) | |
download | linux-333b90fb42f0debe613c48f2f8d307f1c805e43b.tar.xz |
media: vicodec: vicodec-core.c: fix assignment of 0/1 to bool variable
Fix the following coccinelle reports:
drivers/media/test-drivers/vicodec/vicodec-core.c:1674:2-21:
WARNING: Assignment of 0/1 to bool variable
drivers/media/test-drivers/vicodec/vicodec-core.c:1675:2-26:
WARNING: Assignment of 0/1 to bool variable
By replacing the assignment to 0 with 'false' instead.
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/test-drivers')
-rw-r--r-- | drivers/media/test-drivers/vicodec/vicodec-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/test-drivers/vicodec/vicodec-core.c b/drivers/media/test-drivers/vicodec/vicodec-core.c index 8941d73f6611..e4a8d3a5eecd 100644 --- a/drivers/media/test-drivers/vicodec/vicodec-core.c +++ b/drivers/media/test-drivers/vicodec/vicodec-core.c @@ -1671,8 +1671,8 @@ static void vicodec_stop_streaming(struct vb2_queue *q) ctx->comp_size = 0; ctx->header_size = 0; ctx->comp_magic_cnt = 0; - ctx->comp_has_frame = 0; - ctx->comp_has_next_frame = 0; + ctx->comp_has_frame = false; + ctx->comp_has_next_frame = false; } } |