drm/amdgpu: remove structurally dead code
authorJesse Zhang <jesse.zhang@amd.com>
Wed, 8 May 2024 10:14:13 +0000 (18:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 May 2024 20:12:02 +0000 (16:12 -0400)
This code cannot be reached: return "UNKNOWN";.

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: Tim Huang <Tim.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h

index 9a946f0..109f471 100644 (file)
@@ -554,8 +554,6 @@ static inline const char *amdgpu_gfx_compute_mode_desc(int mode)
        default:
                return "UNKNOWN";
        }
-
-       return "UNKNOWN";
 }
 
 #endif