OSDN Git Service

drm/amdgpu: refine code delete duplicated error handling
authorRex Zhu <Rex.Zhu@amd.com>
Mon, 9 Oct 2017 05:50:31 +0000 (13:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:26:53 +0000 (15:26 -0400)
commit202f5d6e1a5962e3acb21c50cd9b4e3ab5990dab
tree781be3db388dfd88c99da0a81f1c7225feb59f2b
parent66f1376269705ab66b343a811594785dfd282cf4
drm/amdgpu: refine code delete duplicated error handling

in function amdgpu_ucode_init_bo, when failed, it will
set load_type to AMDGPU_FW_LOAD_DIRECT.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c