Re: [PATCH] clk: clk-max77686: kzalloc + kcalloc to kzalloc

From: Brian Masney

Date: Mon Mar 30 2026 - 09:22:41 EST


On Wed, Mar 25, 2026 at 10:28:47PM -0700, Rosen Penev wrote:
> Simplify allocation by using a flexible array member to combine
> allocations. Use struct_size to calculate size properly.
>
> Use __counted_by to get extra runtime analysis. Assign counting variable
> right after allocation as required by __counted_by.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>

Reviewed-by: Brian Masney <bmasney@xxxxxxxxxx>