OSDN Git Service

drm/amdgpu: remove redundant variable r and redundant return statement
authorColin Ian King <colin.king@canonical.com>
Thu, 3 Oct 2019 21:40:49 +0000 (22:40 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 4 Oct 2019 13:53:14 +0000 (08:53 -0500)
commit317a8d9eb612a39daf182986463c067201dc1d29
treeff3c7b624a8e8939baeae873d919181c88887b75
parent17cf678a33c6196a3df4531fe5aec91384c9eeb5
drm/amdgpu: remove redundant variable r and redundant return statement

There is a return statement that is not reachable and a variable that
is not used.  Remove them.

Addresses-Coverity: ("Structurally dead code")
Fixes: de7b45babd9b ("drm/amdgpu: cleanup creating BOs at fixed location (v2)")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c