drm/nouveau: delete unused variables "dev" in nouveau_ttm_tt_populate()
Subsystems (3)
PATCH 1/1 drm/nouveau: delete unused variables "dev" in nouveau_ttm_tt_populate()
After switch to new allocator, dev is no longer used here and should be deleted.
Fixes 461619f5c324 ("drm/nouveau: switch to new allocator")
Signed-off-by Luo Jiaxing <[email protected]>
--- drivers/gpu/drm/nouveau/nouveau_bo.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/gpu/drm/nouveau/nouveau_bo.c +0 -4
@@ -1251,7 +1251,6 @@ nouveau_ttm_tt_populate(struct ttm_bo_device *bdev, {struct ttm_tt *ttm_dma = (void *)ttm;struct nouveau_drm *drm; -struct device *dev;bool slave = !!(ttm->page_flags &TTM_PAGE_FLAG_SG );if (ttm_tt_is_populated (ttm))
@@ -1264,7 +1263,6 @@ nouveau_ttm_tt_populate(struct ttm_bo_device *bdev, } drm =nouveau_bdev (bdev); - dev = drm->dev->dev;return ttm_pool_alloc (&drm->ttm.bdev.pool, ttm, ctx); }
@@ -1274,14 +1272,12 @@ nouveau_ttm_tt_unpopulate(struct ttm_bo_device *bdev, struct ttm_tt *ttm) {struct nouveau_drm *drm; -struct device *dev;bool slave = !!(ttm->page_flags &TTM_PAGE_FLAG_SG );if (slave)return ; drm =nouveau_bdev (bdev); - dev = drm->dev->dev;return ttm_pool_free (&drm->ttm.bdev.pool, ttm); }
Signature · 1 line
2.7.4