diff --git a/drivers/gpu/nvgpu/os/linux/cde.c b/drivers/gpu/nvgpu/os/linux/cde.c index b0f3f2d2e..f89cd30a4 100644 --- a/drivers/gpu/nvgpu/os/linux/cde.c +++ b/drivers/gpu/nvgpu/os/linux/cde.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include @@ -1267,14 +1266,6 @@ __releases(&cde_app->mutex) struct nvgpu_os_linux *l = cde_ctx->l; struct gk20a *g = &l->g; struct gk20a_cde_app *cde_app = &l->cde_app; - bool channel_idle; - - nvgpu_channel_joblist_lock(ch); - channel_idle = nvgpu_channel_joblist_is_empty(ch); - nvgpu_channel_joblist_unlock(ch); - - if (!channel_idle) - return; #ifdef CONFIG_NVGPU_TRACE trace_gk20a_cde_finished_ctx_cb(cde_ctx);