drm/amdgpu: fix error handling in amdgpu_bo_create_restricted
authorChristian König <christian.koenig@amd.com>
Thu, 17 Nov 2016 11:16:34 +0000 (12:16 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Nov 2016 20:08:44 +0000 (15:08 -0500)
commitc3af1258a7c784fba6863357b94e31a6824aaff9
treed6b915dd1091d54beea1d102a2e670ed3393ac0d
parentf29224a6197dc71a7f3c557f41ae56c58192c345
drm/amdgpu: fix error handling in amdgpu_bo_create_restricted

Manually checking why a function could fail is not a good idea
if you can just check the functions return code.

Signed-off-by: Christian König <christian.koenig@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_object.c