Skip to content

Commit 461f43b

Browse files
Asad Kamalalexdeucher
authored andcommitted
drm/amd/pm: Remove unnecessary variable
Remove unnecessary variable ret from smu_v13_0_12_get_smu_metrics_data Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected] Signed-off-by: Asad Kamal <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 25c314a commit 461f43b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ int smu_v13_0_12_get_smu_metrics_data(struct smu_context *smu,
301301
struct smu_table_context *smu_table = &smu->smu_table;
302302
MetricsTable_t *metrics = (MetricsTable_t *)smu_table->metrics_table;
303303
struct amdgpu_device *adev = smu->adev;
304-
int ret = 0;
305304
int xcc_id;
306305

307306
/* For clocks with multiple instances, only report the first one */
@@ -357,7 +356,7 @@ int smu_v13_0_12_get_smu_metrics_data(struct smu_context *smu,
357356
break;
358357
}
359358

360-
return ret;
359+
return 0;
361360
}
362361

363362
ssize_t smu_v13_0_12_get_xcp_metrics(struct smu_context *smu, struct amdgpu_xcp *xcp, void *table, void *smu_metrics)

0 commit comments

Comments
 (0)