summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-08-23 14:17:40 +0100
committerAlex Deucher <alexander.deucher@amd.com>2017-08-24 14:27:44 -0400
commit403df1f66cc0457221f3be5c210f128ab87de547 (patch)
tree5ec0ca75fc88d17f15d002e0871d54f5f2a82280 /drivers/gpu
parenta1d6b1901a2154e9f44f39738491f0afc3f8608e (diff)
downloadlinux-stable-403df1f66cc0457221f3be5c210f128ab87de547.tar.gz
linux-stable-403df1f66cc0457221f3be5c210f128ab87de547.tar.bz2
linux-stable-403df1f66cc0457221f3be5c210f128ab87de547.zip
drm/amdgpu: remove duplicate return statement
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
index fb6e5dbd5a03..309f2419c6d8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
@@ -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)