diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-05 03:12:57 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-09-24 16:31:12 +0300 |
commit | 1cafbb867c6905d481c654291f2dc79d163a16f5 (patch) | |
tree | cfb736de62715f2c427e778eb5f00c1534380ad8 /drivers/media/platform/qcom | |
parent | 1f32061e843205f6fe8404d5100d5adcec334e75 (diff) | |
download | linux-1cafbb867c6905d481c654291f2dc79d163a16f5.tar.xz |
media: venus: helpers: use true and false for boolean values
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>
Diffstat (limited to 'drivers/media/platform/qcom')
-rw-r--r-- | drivers/media/platform/qcom/venus/helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c index cd3b96e6f24b..e436385bc5ab 100644 --- a/drivers/media/platform/qcom/venus/helpers.c +++ b/drivers/media/platform/qcom/venus/helpers.c @@ -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; } |