Just clean up the redundant uc_index assignment for DG1.

Signed-off-by: Chuansheng Liu <chuansheng....@intel.com>
---
 drivers/gpu/drm/i915/gt/intel_mocs.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gt/intel_mocs.c 
b/drivers/gpu/drm/i915/gt/intel_mocs.c
index c4c37585ae8c..0c300727a5c2 100644
--- a/drivers/gpu/drm/i915/gt/intel_mocs.c
+++ b/drivers/gpu/drm/i915/gt/intel_mocs.c
@@ -445,7 +445,6 @@ static unsigned int get_mocs_settings(const struct 
drm_i915_private *i915,
                table->table = dg1_mocs_table;
                table->uc_index = 1;
                table->n_entries = GEN9_NUM_MOCS_ENTRIES;
-               table->uc_index = 1;
                table->unused_entries_index = 5;
        } else if (IS_TIGERLAKE(i915) || IS_ROCKETLAKE(i915)) {
                /* For TGL/RKL, Can't be changed now for ABI reasons */
-- 
2.25.0.rc2

Reply via email to