drm/amdgpu: remove structurally dead code for amd_gmc
authorJesse Zhang <jesse.zhang@amd.com>
Wed, 8 May 2024 10:17:43 +0000 (18:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 May 2024 20:11:53 +0000 (16:11 -0400)
This code cannot be reached: return sysfs_emit(buf, "UNK....)

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_gmc.c

index a5f970f..f8ed886 100644 (file)
@@ -1148,8 +1148,6 @@ static ssize_t current_memory_partition_show(
        default:
                return sysfs_emit(buf, "UNKNOWN\n");
        }
-
-       return sysfs_emit(buf, "UNKNOWN\n");
 }
 
 static DEVICE_ATTR_RO(current_memory_partition);