All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/nouveau/bo: remove duplicated variable initialization
@ 2017-09-23 22:39 Sergi Granell
  0 siblings, 0 replies; only message in thread
From: Sergi Granell @ 2017-09-23 22:39 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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

Signed-off-by: Sergi Granell <xerpi.g.12@gmail.com>
---
 drivers/gpu/drm/nouveau/nouveau_bo.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c
index 548f36d3..2724907a 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bo.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
@@ -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;
 
-- 
2.14.1

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-23 22:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-23 22:39 [PATCH] drm/nouveau/bo: remove duplicated variable initialization Sergi Granell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.