aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorSebastian Reichel <[email protected]>2025-07-06 23:26:58 +0000
committerSebastian Reichel <[email protected]>2025-07-12 18:45:17 +0000
commit7b41a2341fa62babda5d5c7a32c632e9eba2ee11 (patch)
tree52f957742f60e068b2921c3cfa19dc49c96e57c2 /drivers/gpu/drm/amd/amdgpu
parentpower: supply: twl4030_charger: Remove redundant pm_runtime_mark_last_busy() ... (diff)
downloadkernel-7b41a2341fa62babda5d5c7a32c632e9eba2ee11.tar.gz
kernel-7b41a2341fa62babda5d5c7a32c632e9eba2ee11.zip
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 <[email protected]> Closes: https://lore.kernel.org/linux-pm/[email protected]/ Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/20250707-fix-psy-static-checker-warning-v1-1-42d555c2b68a@collabora.com Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions