summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-11-15 11:39:08 -0500
committerAlex Deucher <alexander.deucher@amd.com>2016-11-15 14:05:52 -0500
commitcb434658a8ff151c221a9ac1d44fb6788100cd0d (patch)
tree12ab3d7cb5599140364811ba8e682504038fbebf /drivers/gpu
parent8e94a46c1770884166b31adc99eba7da65a446a7 (diff)
downloadlinux-stable-cb434658a8ff151c221a9ac1d44fb6788100cd0d.tar.gz
linux-stable-cb434658a8ff151c221a9ac1d44fb6788100cd0d.tar.bz2
linux-stable-cb434658a8ff151c221a9ac1d44fb6788100cd0d.zip
drm/amdgpu/powerplay: drop a redundant NULL check
Left over from an earlier rev of the patch. Acked-by: Colin Ian King <colin.king@canonical.com> Cc: Dan Carpenter <dan.carpenter@oracle.com> Cc: Colin King <colin.king@canonical.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
index b0c929dd8beb..13f2b705ea49 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
@@ -1469,8 +1469,6 @@ static int smu7_get_evv_voltages(struct pp_hwmgr *hwmgr)
table_info->vddgfx_lookup_table, vv_id, &sclk)) {
if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
PHM_PlatformCaps_ClockStretcher)) {
- if (table_info == NULL)
- return -EINVAL;
sclk_table = table_info->vdd_dep_on_sclk;
for (j = 1; j < sclk_table->count; j++) {