diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-04-05 07:58:21 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-10 02:54:38 -0400 |
commit | a8c957133346854212e7094cf77f6858308d9c2c (patch) | |
tree | 54dd7264f9cc7ee15636a76c9c4a55a59974170d /drivers | |
parent | 92ab6c3bbc4f3bd7d355981b6e13a2eebff4d7d1 (diff) |
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 <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1455974
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/cde_gk20a.c | 2 |
1 files changed, 0 insertions, 2 deletions
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) | |||
1122 | cde_ctx->init_cmd_executed = true; | 1122 | cde_ctx->init_cmd_executed = true; |
1123 | 1123 | ||
1124 | /* unmap the buffers - channel holds references to them now */ | 1124 | /* unmap the buffers - channel holds references to them now */ |
1125 | if (surface) | ||
1126 | dma_buf_vunmap(compbits_scatter_buf, surface); | ||
1127 | gk20a_vm_unmap(cde_ctx->vm, map_vaddr); | 1125 | gk20a_vm_unmap(cde_ctx->vm, map_vaddr); |
1128 | 1126 | ||
1129 | return err; | 1127 | return err; |