Skip to contentSkip to conversation

drm/ttm: clean the redundant assignment

PATCH In review Chuansheng Liu 2 participants 2 messages Sep 22, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/ttm: clean the redundant assignment

Clean the redundant assignment of ttm->caching in ttm_tt_init_fields().

---
 drivers/gpu/drm/ttm/ttm_tt.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/ttm/ttm_tt.c +0 -1
index d505603930a7..e110db86c870 100644
@@ -136,7 +136,6 @@ static void ttm_tt_init_fields(struct ttm_tt *ttm,
 			       unsigned long extra_pages)
 {
 	ttm->num_pages = (PAGE_ALIGN(bo->base.size) >> PAGE_SHIFT) + extra_pages;
-	ttm->caching = ttm_cached;
 	ttm->page_flags = page_flags;
 	ttm->dma_address = NULL;
 	ttm->swap_storage = NULL;
Signature · 1 line
2.25.0.rc2
#1 lore raw

Am 22.09.22 um 02:49 schrieb Chuansheng Liu:

Quoted 3 lines

Clean the redundant assignment of ttm->caching in ttm_tt_init_fields().

I'm really wondering how this came to be. Anyway Reviewed-by: Christian König <[email protected]>

Quoted 16 lines
---
  drivers/gpu/drm/ttm/ttm_tt.c | 1 -
  1 file changed, 1 deletion(-)
drivers/gpu/drm/ttm/ttm_tt.c +0 -1
index d505603930a7..e110db86c870 100644
@@ -136,7 +136,6 @@ static void ttm_tt_init_fields(struct ttm_tt *ttm,
  			       unsigned long extra_pages)
  {
  	ttm->num_pages = (PAGE_ALIGN(bo->base.size) >> PAGE_SHIFT) + extra_pages;
-	ttm->caching = ttm_cached;
  	ttm->page_flags = page_flags;
  	ttm->dma_address = NULL;
  	ttm->swap_storage = NULL;