[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <175234604290.745954.15228307419539590803.b4-ty@collabora.com>
Date: Sat, 12 Jul 2025 20:47:22 +0200
From: Sebastian Reichel <sebastian.reichel@...labora.com>
To: Sebastian Reichel <sre@...nel.org>,
Sebastian Reichel <sebastian.reichel@...labora.com>
Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Hans de Goede <hansg@...nel.org>, Dan Carpenter <dan.carpenter@...aro.org>,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel@...labora.com
Subject: Re: [PATCH] power: supply: core: fix static checker warning
On Mon, 07 Jul 2025 01:26:58 +0200, Sebastian Reichel wrote:
> static checker complains, that the block already breaks if IS_ERR(np)
> and thus the extra !IS_ERR(np) check in the while condition is
> superfluous. Avoid the extra check by using while(true) instead. This
> should not change the runtime behavior at all and I expect the binary
> to be more or less the same for an optimizing compiler.
>
>
> [...]
Applied, thanks!
[1/1] power: supply: core: fix static checker warning
commit: 7b41a2341fa62babda5d5c7a32c632e9eba2ee11
Best regards,
--
Sebastian Reichel <sebastian.reichel@...labora.com>
Powered by blists - more mailing lists