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

Commit cb434658 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu/powerplay: drop a redundant NULL check



Left over from an earlier rev of the patch.

Acked-by: default avatarColin Ian King <colin.king@canonical.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Colin King <colin.king@canonical.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8e94a46c
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -1469,8 +1469,6 @@ static int smu7_get_evv_voltages(struct pp_hwmgr *hwmgr)
						table_info->vddgfx_lookup_table, vv_id, &sclk)) {
						table_info->vddgfx_lookup_table, vv_id, &sclk)) {
				if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
				if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
							PHM_PlatformCaps_ClockStretcher)) {
							PHM_PlatformCaps_ClockStretcher)) {
					if (table_info == NULL)
						return -EINVAL;
					sclk_table = table_info->vdd_dep_on_sclk;
					sclk_table = table_info->vdd_dep_on_sclk;


					for (j = 1; j < sclk_table->count; j++) {
					for (j = 1; j < sclk_table->count; j++) {