drm/amdgpu/powerplay/vega10: handle error in getting pptable
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Dec 2020 13:51:06 +0000 (08:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Dec 2020 22:37:16 +0000 (17:37 -0500)
commit9805e1adab1198a52db035901f872019ffdacc68
treec42271bd89a70739394b934b26b0b66f6f41a42d
parent402bdef8a5cbd5a6922a5bd7e109c411ef7d28ee
drm/amdgpu/powerplay/vega10: handle error in getting pptable

Rather than just silently dropping it.  Also fixes a set but
unused variable warning.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c