Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24e8df6a authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher
Browse files

drm/amd/powerplay: fix static checker warnings in smu7_hwmgr.c

parent eeb2fa0c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1452,7 +1452,9 @@ static int smu7_get_evv_voltages(struct pp_hwmgr *hwmgr)
	struct phm_ppt_v1_clock_voltage_dependency_table *sclk_table = NULL;


	if (table_info != NULL)
	if (table_info == NULL)
		return -EINVAL;

	sclk_table = table_info->vdd_dep_on_sclk;

	for (i = 0; i < SMU7_MAX_LEAKAGE_COUNT; i++) {