From a8c957133346854212e7094cf77f6858308d9c2c Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Wed, 5 Apr 2017 17:28:21 +0530 Subject: gpu: nvgpu: remove logically dead code In gk20a_cde_convert, we already unmap surface and then again try to unmap if it is mapped Remove this logically dead code Coverity id : 2477002 Bug 200291879 Change-Id: I66dbf43d0475403be27d5acee826d8037e71d4d8 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/1455974 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman --- drivers/gpu/nvgpu/gk20a/cde_gk20a.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/gpu/nvgpu') diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c index 7c251e2d..16baaa39 100644 --- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c @@ -1122,8 +1122,6 @@ __releases(&cde_app->mutex) cde_ctx->init_cmd_executed = true; /* unmap the buffers - channel holds references to them now */ - if (surface) - dma_buf_vunmap(compbits_scatter_buf, surface); gk20a_vm_unmap(cde_ctx->vm, map_vaddr); return err; -- cgit v1.2.2