Re: [PATCH v3 5/6] media: qcom: iris: Optimize iris_hfi_gen1_packet_session_set_property
From: Dikshita Agarwal
Date: Mon Jan 19 2026 - 04:57:00 EST
On 1/9/2026 1:12 PM, Wangao Wang wrote:
> Modify iris_hfi_gen1_packet_session_set_property to simplify size
> calculations and remove redundant code patterns.
>
> Previously, packet->shdr.hdr.size was incremented by sizeof(u32) in
> every switch case, resulting in repetitive and less maintainable
> logic.
>
> Signed-off-by: Wangao Wang <wangao.wang@xxxxxxxxxxxxxxxx>
> ---
> .../platform/qcom/iris/iris_hfi_gen1_command.c | 50 +++++++++++-----------
> 1 file changed, 25 insertions(+), 25 deletions(-)
>
Reviewed-by: Dikshita Agarwal <dikshita.agarwal@xxxxxxxxxxxxxxxx>
Thanks,
Dikshita