OSDN Git Service

drm/amd/powerplay: some cosmetic fixes
authorEvan Quan <evan.quan@amd.com>
Tue, 23 Jul 2019 08:23:28 +0000 (16:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2019 04:19:13 +0000 (23:19 -0500)
commit780f3a9c5b9f739d77cc15fac58a97c3ec6cad99
treead386e41988901ca767dd94feb41ad5abcef4789
parentd3a593e97ecdff6bbebfd8b83079ffc5a332dccf
drm/amd/powerplay: some cosmetic fixes

Drop redundant check, duplicate check, duplicate setting
and fix the return value.

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