OSDN Git Service

media: venus: helpers: Delete an unneeded bool conversion
authorZhen Lei <thunder.leizhen@huawei.com>
Mon, 10 May 2021 11:57:52 +0000 (13:57 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Jun 2021 10:28:59 +0000 (12:28 +0200)
The result of an expression consisting of a single relational operator is
already of the bool type and does not need to be evaluated explicitly.

No functional change.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/venus/helpers.c

index b691215..1fe6d46 100644 (file)
@@ -595,8 +595,7 @@ static int platform_get_bufreq(struct venus_inst *inst, u32 buftype,
                params.dec.is_secondary_output =
                        inst->opb_buftype == HFI_BUFFER_OUTPUT2;
                params.dec.is_interlaced =
-                       inst->pic_struct != HFI_INTERLACE_FRAME_PROGRESSIVE ?
-                               true : false;
+                       inst->pic_struct != HFI_INTERLACE_FRAME_PROGRESSIVE;
        } else {
                params.width = inst->out_width;
                params.height = inst->out_height;