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)
commite31ae352b77627666a06342373257d050971956f
tree970921806c54719e9b62e184b4eee789170c50ab
parent660b3bd82b4f4bb777f5a3d1910ad2cb81f44918
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