Skip to content

Commit c0732ba

Browse files
Nirmoy Dasalexdeucher
authored andcommitted
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 <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 6b17afc commit c0732ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/powerplay/arcturus_ppt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2371,7 +2371,7 @@ static void arcturus_i2c_eeprom_control_fini(struct smu_context *smu, struct i2c
23712371
static void arcturus_get_unique_id(struct smu_context *smu)
23722372
{
23732373
struct amdgpu_device *adev = smu->adev;
2374-
uint32_t top32, bottom32, smu_version;
2374+
uint32_t top32 = 0, bottom32 = 0, smu_version;
23752375
uint64_t id;
23762376

23772377
if (smu_get_smc_version(smu, NULL, &smu_version)) {

0 commit comments

Comments
 (0)