summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2021-05-10 13:57:52 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-06-02 12:28:59 +0200
commit6fc46680520f38af8425a447de5e0f84106512eb (patch)
tree0c0c0dd830bcc8aa401cda49cb5c13c23dfcfee2
parent3cfe5815ce0ee87f4979787cc7af23404a02edc1 (diff)
downloadlinux-stable-6fc46680520f38af8425a447de5e0f84106512eb.tar.gz
linux-stable-6fc46680520f38af8425a447de5e0f84106512eb.tar.bz2
linux-stable-6fc46680520f38af8425a447de5e0f84106512eb.zip
media: venus: helpers: Delete an unneeded bool conversion
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>
-rw-r--r--drivers/media/platform/qcom/venus/helpers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c
index b691215a3bf2..1fe6d463dc99 100644
--- a/drivers/media/platform/qcom/venus/helpers.c
+++ b/drivers/media/platform/qcom/venus/helpers.c
@@ -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;