diff options
author | Daniel W. S. Almeida <dwlsalmeida@gmail.com> | 2020-08-07 10:35:43 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-08-29 08:03:19 +0200 |
commit | c90b4d70b1746f5a46fb7bad988731e604a44d4e (patch) | |
tree | 7ac576bedeb9d7456d7763202ca47bde9cc30dc1 /drivers/media/i2c | |
parent | 77efe8aeafeaca4d4c5dc3c0e3c88e3e2ae50274 (diff) | |
download | linux-c90b4d70b1746f5a46fb7bad988731e604a44d4e.tar.bz2 |
media: i2c: imx219.c: fix assignment of 0/1 to bool variable
Fix the following coccinelle report:
drivers/media/i2c/imx219.c:1191:1-18:
WARNING: Assignment of 0/1 to bool variable
Replace 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/i2c')
-rw-r--r-- | drivers/media/i2c/imx219.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/imx219.c b/drivers/media/i2c/imx219.c index f64c0ef7a897..1cee45e35355 100644 --- a/drivers/media/i2c/imx219.c +++ b/drivers/media/i2c/imx219.c @@ -1188,7 +1188,7 @@ static int __maybe_unused imx219_resume(struct device *dev) error: imx219_stop_streaming(imx219); - imx219->streaming = 0; + imx219->streaming = false; return ret; } |