OSDN Git Service

drm/powerplay: fix compilation warning
authorNirmoy Das <nirmoy.das@amd.com>
Mon, 22 Jun 2020 19:50:40 +0000 (21:50 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:26 +0000 (01:59 -0400)
commitc0732ba1eeec7fe6ea53c949d5ec6f79d56282c7
tree75c9ef31016f32577a2be1480a629051d2fd4a8e
parent6b17afcccc811a77cd2a2003d8417bfb8b946feb
drm/powerplay: fix compilation warning

If (smu)->ppt_funcs->intf is not initialized then
smu_send_smc_msg(smu, SMU_MSG_ReadSerialNumBottom32, &bottom32) and
smu_send_smc_msg(smu, SMU_MSG_ReadSerialNumTop32, &top32) will not
touch bottom32 and top32.

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c