From: Matt Roper Date: Thu, 23 Feb 2023 18:57:37 +0000 (-0800) Subject: drm/xe/mocs: Drop duplicate assignment of uc_index X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6c57023ec42713e6cb91fdfbbd77147979e597e2;p=linux.git drm/xe/mocs: Drop duplicate assignment of uc_index The DG1 branch needlessly assigns uc_index twice. Drop the second instance. Signed-off-by: Matt Roper Reviewed-by: Lucas De Marchi Signed-off-by: Rodrigo Vivi --- diff --git a/drivers/gpu/drm/xe/xe_mocs.c b/drivers/gpu/drm/xe/xe_mocs.c index 65295cd4f4ad3..e24d0dbc178ef 100644 --- a/drivers/gpu/drm/xe/xe_mocs.c +++ b/drivers/gpu/drm/xe/xe_mocs.c @@ -352,7 +352,6 @@ static unsigned int get_mocs_settings(struct xe_device *xe, info->table = dg1_mocs_desc; info->uc_index = 1; info->n_entries = GEN9_NUM_MOCS_ENTRIES; - info->uc_index = 1; info->unused_entries_index = 5; break; case XE_TIGERLAKE: