drm: nouveau: nouveau_bo.c: Remove set but unused variables
Subsystems (3)
PATCH 1/1 drm: nouveau: nouveau_bo.c: Remove set but unused variables
Removed two variables set but unused.
Signed-off-by Fabio M. De Francesco <[email protected]>
--- drivers/gpu/drm/nouveau/nouveau_bo.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/gpu/drm/nouveau/nouveau_bo.c +0 -4
@@ -1247,7 +1247,6 @@ nouveau_ttm_tt_populate(struct ttm_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))
@@ -1260,7 +1259,6 @@ nouveau_ttm_tt_populate(struct ttm_device *bdev, } drm =nouveau_bdev (bdev); - dev = drm->dev->dev;return ttm_pool_alloc (&drm->ttm.bdev.pool, ttm, ctx); }
@@ -1270,14 +1268,12 @@ nouveau_ttm_tt_unpopulate(struct ttm_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.31.1