Re: [PATCH] power: supply: core: fix static checker warning
From: Sebastian Reichel
Date: Sat Jul 12 2025 - 14:47:50 EST
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@xxxxxxxxxxxxx>