drm/amdgpu: remove duplicate return statement
authorColin Ian King <colin.king@canonical.com>
Wed, 23 Aug 2017 13:17:40 +0000 (14:17 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Aug 2017 19:27:49 +0000 (15:27 -0400)
Remove a redundant identical return statement, it has no use.

Detected by CoverityScan, CID#1454586 ("Structurally dead code")

Reviewed-by: Felix Kuehling <Felix.Kuehling@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_amdkfd_gfx_v8.c

index fb6e5dbd5a03558d4ad06049b7fe581f18a801ec..309f2419c6d8aaed250f1fd2235cc45c3cdef1d7 100644 (file)
@@ -155,7 +155,6 @@ static const struct kfd2kgd_calls kfd2kgd = {
 struct kfd2kgd_calls *amdgpu_amdkfd_gfx_8_0_get_functions(void)
 {
        return (struct kfd2kgd_calls *)&kfd2kgd;
-       return (struct kfd2kgd_calls *)&kfd2kgd;
 }
 
 static inline struct amdgpu_device *get_amdgpu_device(struct kgd_dev *kgd)