]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: fix compile warnings about variable used uninitialized
authorEvan Quan <evan.quan@amd.com>
Wed, 28 Oct 2020 02:33:04 +0000 (10:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Oct 2020 18:27:15 +0000 (14:27 -0400)
commit1f0be8864bbd5ec14a3872697e8edbd3361ea36b
tree970921806c54719e9b62e184b4eee789170c50ab
parent74933a55f0b07ef19120a46c62ef0c1a1288792c
drm/amd/pm: fix compile warnings about variable used uninitialized

Fix the compile warnings below:
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:1743:13: warning: variable 'min' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:1743:13: warning: variable 'max' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c