diff options
author | Sebastian Reichel <sebastian.reichel@collabora.com> | 2025-07-07 02:26:58 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2025-07-12 21:45:17 +0300 |
commit | 7b41a2341fa62babda5d5c7a32c632e9eba2ee11 (patch) | |
tree | 52f957742f60e068b2921c3cfa19dc49c96e57c2 /scripts/lib/kdoc/kdoc_files.py | |
parent | f9335bb4f5d4f3b913efd5872c2794d027dd85a6 (diff) | |
download | linux-7b41a2341fa62babda5d5c7a32c632e9eba2ee11.tar.xz |
power: supply: core: fix static checker warning
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.
Fixes: f368f87b22da ("power: supply: core: convert to fwnnode")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/linux-pm/285c9c39-482c-480c-8b0b-07111e39fdfe@sabinyo.mountain/
Reviewed-by: Hans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20250707-fix-psy-static-checker-warning-v1-1-42d555c2b68a@collabora.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions