Commit ee9568aa authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Mauro Carvalho Chehab

media: venus: hfi: use true for boolean values

Assign true or false to boolean variables instead of an integer value.

This issue was detected with the help of Coccinelle.
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 59e18d7c
...@@ -659,10 +659,10 @@ static u32 init_done_read_prop(struct venus_core *core, struct venus_inst *inst, ...@@ -659,10 +659,10 @@ static u32 init_done_read_prop(struct venus_core *core, struct venus_inst *inst,
prop->buffer_type == HFI_BUFFER_OUTPUT2) { prop->buffer_type == HFI_BUFFER_OUTPUT2) {
switch (prop->data[i]) { switch (prop->data[i]) {
case HFI_BUFFER_MODE_STATIC: case HFI_BUFFER_MODE_STATIC:
inst->cap_bufs_mode_static = 1; inst->cap_bufs_mode_static = true;
break; break;
case HFI_BUFFER_MODE_DYNAMIC: case HFI_BUFFER_MODE_DYNAMIC:
inst->cap_bufs_mode_dynamic = 1; inst->cap_bufs_mode_dynamic = true;
break; break;
default: default:
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment