Skip to contentSkip to conversation

drm/nouveau/bo: remove duplicated variable initialization

PATCH New Sergi Granell 1 participant 1 message Sep 23, 2017

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

PATCH 1/1 drm/nouveau/bo: remove duplicated variable initialization

The page_count variable in nv04_bo_move_m2mf was redundantly initialized twice with the same value.

---
 drivers/gpu/drm/nouveau/nouveau_bo.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/nouveau/nouveau_bo.c +0 -1
index 548f36d3..2724907a 100644
@@ -967,7 +967,6 @@ nv04_bo_move_m2mf(struct nouveau_channel *chan, struct ttm_buffer_object *bo,
 	OUT_RING  (chan, nouveau_bo_mem_ctxdma(bo, chan, old_reg));
 	OUT_RING  (chan, nouveau_bo_mem_ctxdma(bo, chan, new_reg));
 
-	page_count = new_reg->num_pages;
 	while (page_count) {
 		int line_count = (page_count > 2047) ? 2047 : page_count;
 
Signature · 6 lines
2.14.1

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau