diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2021-05-10 19:57:52 +0800 |
---|---|---|
committer | Stanimir Varbanov <stanimir.varbanov@linaro.org> | 2021-05-29 02:13:01 +0300 |
commit | f7b9607889df645ad689e00a1a2971ff3714fbe0 (patch) | |
tree | 806e8c5ddeeb7681fb524e30121d4357ba120b4f | |
parent | 83f798341a24eec0c2c40c70784055100774117b (diff) |
media: venus: helpers: Delete an unneeded bool conversionvenus-for-v5.14venus-for-next-v5.14
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>
-rw-r--r-- | drivers/media/platform/qcom/venus/helpers.c | 3 |
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; |