drm/amd/pp: Refine function iceland_start_smu
authorRex Zhu <Rex.Zhu@amd.com>
Sat, 29 Sep 2018 05:28:20 +0000 (13:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Oct 2018 22:05:40 +0000 (17:05 -0500)
commitbcb7c4e8b434d35697024cd47083c3aa0ef19b8b
tree244084402ccdc80ab6e843d7df10ea283301b458
parent44779b43f15977885a0e3b45bf6deb6be18725e5
drm/amd/pp: Refine function iceland_start_smu

if upload firmware failed, no matter how many times
the function runs again, the same error will be encountered.
so remove the duplicated code.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c