Re: [PATCH] interconnect: qcom: simplify allocation
From: Dmitry Baryshkov
Date: Mon Jun 08 2026 - 02:37:34 EST
On Sun, Jun 07, 2026 at 10:04:29PM -0700, Rosen Penev wrote:
> Use a flexible array member to reduce allocation by 1.
>
> Add __counted_by for extra runtime analysis. Move counting variable
> assignment after allocation before any array access,
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> drivers/interconnect/qcom/icc-rpm.c | 7 ++-----
> drivers/interconnect/qcom/icc-rpm.h | 2 +-
> 2 files changed, 3 insertions(+), 6 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
--
With best wishes
Dmitry