Skip to contentSkip to conversation

media: venus: helpers: Delete an unneeded bool conversion

PATCH New Zhen Lei 1 participant 1 message May 10, 2021

Subsystems (4)
lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/media/platform/qcom/venus/helpers.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/platform/qcom/venus/helpers.c +1 -2
index b813d6dba481794..46ae1faf63ed4cb 100644
@@ -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;
Signature · 1 line
2.26.0.106.g9fadedd