drm/amd/amdgpu: get rid of else branch
authorNikola Pajkovsky <npajkovsky@suse.cz>
Thu, 4 May 2017 16:39:50 +0000 (12:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:28 +0000 (17:40 -0400)
commit5b9c58f9978fb17692966173262ef05f9a1f9a1e
tree3591f2058b857931bfdc98b9e11a82e5611ece65
parent503bb31be42e3fea15c5e81bb2d84a0123438c85
drm/amd/amdgpu: get rid of else branch

else branch is pointless if it's right at the end of function and use
unlikely() on err path.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Nikola Pajkovsky <npajkovsky@suse.cz>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h