Skip to content

Commit 403df1f

Browse files
Colin Ian Kingalexdeucher
authored andcommitted
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>
1 parent a1d6b19 commit 403df1f

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ static const struct kfd2kgd_calls kfd2kgd = {
155155
struct kfd2kgd_calls *amdgpu_amdkfd_gfx_8_0_get_functions(void)
156156
{
157157
return (struct kfd2kgd_calls *)&kfd2kgd;
158-
return (struct kfd2kgd_calls *)&kfd2kgd;
159158
}
160159

161160
static inline struct amdgpu_device *get_amdgpu_device(struct kgd_dev *kgd)

0 commit comments

Comments
 (0)