media: venus: hfi: use true for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 23 Jan 2018 17:54:53 +0000 (12:54 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 26 Feb 2018 12:53:09 +0000 (07:53 -0500)
Assign true or false to boolean variables instead of an integer value.

This issue 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@s-opensource.com>
drivers/media/platform/qcom/venus/hfi_msgs.c

index a681ae5381d6cd43ef736280b7199edfbca5e40c..90c93d9603dc402ca901aada56548ff65c8efaa6 100644 (file)
@@ -659,10 +659,10 @@ static u32 init_done_read_prop(struct venus_core *core, struct venus_inst *inst,
                                    prop->buffer_type == HFI_BUFFER_OUTPUT2) {
                                        switch (prop->data[i]) {
                                        case HFI_BUFFER_MODE_STATIC:
-                                               inst->cap_bufs_mode_static = 1;
+                                               inst->cap_bufs_mode_static = true;
                                                break;
                                        case HFI_BUFFER_MODE_DYNAMIC:
-                                               inst->cap_bufs_mode_dynamic = 1;
+                                               inst->cap_bufs_mode_dynamic = true;
                                                break;
                                        default:
                                                break;