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>
This commit is contained in:
Gustavo A. R. Silva 2018-08-04 20:12:57 -04:00 коммит произвёл Mauro Carvalho Chehab
Родитель 1f32061e84
Коммит 1cafbb867c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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); caps = venus_caps_by_codec(core, inst->hfi_codec, inst->session_type);
if (!caps) if (!caps)
return 0; return false;
return caps->cap_bufs_mode_dynamic; return caps->cap_bufs_mode_dynamic;
} }