From: Jesse Zhang Date: Wed, 8 May 2024 10:17:43 +0000 (+0800) Subject: drm/amdgpu: remove structurally dead code for amd_gmc X-Git-Tag: v6.11-rc1~141^2~25^2~231 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e2bff63ba6f875cb879c90758662f193f040d033;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu: remove structurally dead code for amd_gmc This code cannot be reached: return sysfs_emit(buf, "UNK....) Signed-off-by: Jesse Zhang Reviewed-by: Tim Huang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c index a5f970fec2426..f8ed886ffca36 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c @@ -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);