media: venus: helpers: use true and false for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sun, 5 Aug 2018 00:12:57 +0000 (20:12 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Sep 2018 13:31:12 +0000 (09:31 -0400)
Return statements in functions returning bool should use true or false
instead of an integer value.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/qcom/venus/helpers.c

index cd3b96e6f24b2ff672a2f51fd52dc049ace604dc..e436385bc5ab5a11d506d02438c8852adb4c24f5 100644 (file)
@@ -472,7 +472,7 @@ static bool is_dynamic_bufmode(struct venus_inst *inst)
 
        caps = venus_caps_by_codec(core, inst->hfi_codec, inst->session_type);
        if (!caps)
-               return 0;
+               return false;
 
        return caps->cap_bufs_mode_dynamic;
 }