[PATCH 11/22] drm/amdgpu: remove structurally dead code for amd_gmc
Huang, Tim
Tim.Huang at amd.com
Fri May 10 06:39:10 UTC 2024
[AMD Official Use Only - General]
This patch is,
Reviewed-by: Tim Huang <Tim.Huang at amd.com>
> -----Original Message-----
> From: Jesse Zhang <jesse.zhang at amd.com>
> Sent: Friday, May 10, 2024 10:50 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: Deucher, Alexander <Alexander.Deucher at amd.com>; Koenig, Christian
> <Christian.Koenig at amd.com>; Huang, Tim <Tim.Huang at amd.com>; Zhang,
> Jesse(Jie) <Jesse.Zhang at amd.com>; Zhang, Jesse(Jie)
> <Jesse.Zhang at amd.com>
> Subject: [PATCH 11/22] drm/amdgpu: remove structurally dead code for
> amd_gmc
>
> This code cannot be reached: return sysfs_emit(buf, "UNK....)
>
> Signed-off-by: Jesse Zhang <Jesse.Zhang at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> index a5f970fec242..f8ed886ffca3 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);
> --
> 2.25.1
More information about the amd-gfx
mailing list