From 93bfdd32075bc81b086bff8295c6fb81dd0db8a3 Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Mon, 13 May 2019 17:43:24 -0700 Subject: [PATCH] gpu: nvgpu: remove unused ch->gpfifo.wrap ch->gpfifo.wrap was set when updating ch->gpfifo.get, but never used afterwards. Removed. Jira NVGPU-3388 Change-Id: I198e9ba0c3716a200a8937c2488cf35e04c0166f Signed-off-by: Thomas Fleury Reviewed-on: https://git-master.nvidia.com/r/2118184 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/fifo/channel.c | 3 --- drivers/gpu/nvgpu/include/nvgpu/channel.h | 2 -- 2 files changed, 5 deletions(-) diff --git a/drivers/gpu/nvgpu/common/fifo/channel.c b/drivers/gpu/nvgpu/common/fifo/channel.c index 4159ae29a..48e1d571a 100644 --- a/drivers/gpu/nvgpu/common/fifo/channel.c +++ b/drivers/gpu/nvgpu/common/fifo/channel.c @@ -1395,9 +1395,6 @@ static inline u32 update_gp_get(struct gk20a *g, { u32 new_get = g->ops.userd.gp_get(g, c); - if (new_get < c->gpfifo.get) { - c->gpfifo.wrap = !c->gpfifo.wrap; - } c->gpfifo.get = new_get; return new_get; } diff --git a/drivers/gpu/nvgpu/include/nvgpu/channel.h b/drivers/gpu/nvgpu/include/nvgpu/channel.h index ea287abf6..6c0a8d4d5 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/channel.h +++ b/drivers/gpu/nvgpu/include/nvgpu/channel.h @@ -90,8 +90,6 @@ struct gpfifo_desc { u32 get; u32 put; - bool wrap; - /* if gpfifo lives in vidmem or is forced to go via PRAMIN, first copy * from userspace to pipe and then from pipe to gpu buffer */ void *pipe;