media: staging: ipu3: replace 0 with false
authorJules Irenge <jbi.octave@gmail.com>
Thu, 7 Nov 2019 10:36:08 +0000 (11:36 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 4 Jan 2020 07:09:25 +0000 (08:09 +0100)
Replace 0 with false to clear
warning of assignment of 0/1 to bool variable.
Issue detected by coccinelle tool.

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/ipu3/ipu3-css.c

index fd1ed84..f36de50 100644 (file)
@@ -1450,7 +1450,7 @@ bool imgu_css_pipe_queue_empty(struct imgu_css *css, unsigned int pipe)
 bool imgu_css_queue_empty(struct imgu_css *css)
 {
        unsigned int pipe;
-       bool ret = 0;
+       bool ret = false;
 
        for (pipe = 0; pipe < IMGU_MAX_PIPE_NUM; pipe++)
                ret &= imgu_css_pipe_queue_empty(css, pipe);