Skip to content

Commit 2ce977d

Browse files
Ma JunChristianKoenigAMD
authored andcommitted
drm/ttm: Remove redundant code in ttm_tt_init_fields
Remove redundant assignment code for ttm->caching as it's overwritten just a few lines later. v2: - Update the commit message. Signed-off-by: Ma Jun <Jun.Ma2@amd.com> Reviewed-by: Guchun Chen <guchun.chen@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230531053051.3453509-1-Jun.Ma2@amd.com
1 parent 6eb6b6f commit 2ce977d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/gpu/drm/ttm/ttm_tt.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ static void ttm_tt_init_fields(struct ttm_tt *ttm,
137137
unsigned long extra_pages)
138138
{
139139
ttm->num_pages = (PAGE_ALIGN(bo->base.size) >> PAGE_SHIFT) + extra_pages;
140-
ttm->caching = ttm_cached;
141140
ttm->page_flags = page_flags;
142141
ttm->dma_address = NULL;
143142
ttm->swap_storage = NULL;

0 commit comments

Comments
 (0)