[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <175061959737.285737.2823091107062731598.b4-ty@collabora.com>
Date: Sun, 22 Jun 2025 21:13:17 +0200
From: Sebastian Reichel <sebastian.reichel@...labora.com>
To: krzk@...nel.org, sre@...nel.org, akpm@...ux-foundation.org,
lee@...nel.org, Charles Han <hanchunchao@...pur.com>
Cc: linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH V3] charger: max14577: Handle NULL pdata when CONFIG_OF
is not set
On Mon, 19 May 2025 14:16:01 +0800, Charles Han wrote:
> When the kernel is not configured CONFIG_OF, the max14577_charger_dt_init
> function returns NULL. Fix the max14577_charger_probe functionby returning
> -ENODATA instead of potentially passing a NULL pointer to PTR_ERR.
>
> Fix below smatch warning.
> smatch warnings:
> drivers/power/supply/max14577_charger.c:576 max14577_charger_probe() warn: passing zero to 'PTR_ERR'
>
> [...]
Applied, thanks!
[1/1] charger: max14577: Handle NULL pdata when CONFIG_OF is not set
commit: 2937f5d2e24eefef8cb126244caec7fe3307f724
Best regards,
--
Sebastian Reichel <sebastian.reichel@...labora.com>
Powered by blists - more mailing lists