Re: [PATCH v2] media: qcom: iris: initialize OPP pointer at declaration
From: Dmitry Baryshkov
Date: Tue Jul 28 2026 - 10:04:50 EST
On Mon, Jun 08, 2026 at 12:05:31PM +0000, Hungyu Lin wrote:
> Initialize the managed OPP pointer at declaration rather than
> assigning it in a separate statement.
>
> This avoids a checkpatch warning about a potentially uninitialized
> managed pointer.
>
> Signed-off-by: Hungyu Lin <dennylin0707@xxxxxxxxx>
> ---
> Changes in v2:
> - Initialize the managed pointer directly at declaration as suggested
> by Dmitry Baryshkov.
>
> drivers/media/platform/qcom/iris/iris_resources.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
>
--
With best wishes
Dmitry