From 2aad9366fe6d5f537751b5b16a82231e2c4b1bdf Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Thu, 15 Mar 2018 15:46:52 +0200 Subject: gpu: nvgpu: delete unused job->pre_fence The pre_fence member in channel_gk20a_job is no longer used for anything. Delete it. Only the post fence needs to be tracked. Jira NVGPU-527 Jira NVGPU-528 Bug 200390539 Change-Id: Ia1a556728dabf9a8e305ed76020ac1aa0b4d6b88 Signed-off-by: Konsta Holtta Reviewed-on: https://git-master.nvidia.com/r/1676735 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index fb7406da..78953558 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c @@ -1924,9 +1924,8 @@ void gk20a_channel_clean_up_jobs(struct channel_gk20a *c, channel_gk20a_joblist_delete(c, job); channel_gk20a_joblist_unlock(c); - /* Close the fences (this will unref the semaphores and release - * them to the pool). */ - gk20a_fence_put(job->pre_fence); + /* Close the fence (this will unref the semaphore and release + * it to the pool). */ gk20a_fence_put(job->post_fence); /* Free the private command buffers (wait_cmd first and -- cgit v1.2.2