]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/pm: fix the compile warning
authorEvan Quan <evan.quan@amd.com>
Mon, 25 Apr 2022 02:16:46 +0000 (10:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 14:59:16 +0000 (16:59 +0200)
commit030d376ed1f47223ef3cb1473a8a2945a7fe1f50
treef076da8df4e461204a56692f92f947dc8893b20a
parent4ab7e453a3ee88c274cf97bee9487ab92a66d313
drm/amd/pm: fix the compile warning

[ Upstream commit 555238d92ac32dbad2d77ad2bafc48d17391990c ]

Fix the compile warning below:
drivers/gpu/drm/amd/amdgpu/../pm/legacy-dpm/kv_dpm.c:1641
kv_get_acp_boot_level() warn: always true condition '(table->entries[i]->clk >= 0) => (0-u32max >= 0)'

Reported-by: kernel test robot <lkp@intel.com>
CC: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/kv_dpm.c