diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index 02de1391..64a14f8e 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -894,9 +894,6 @@ static void gk20a_free_channel(struct channel_gk20a *ch) | |||
894 | } | 894 | } |
895 | mutex_unlock(&f->deferred_reset_mutex); | 895 | mutex_unlock(&f->deferred_reset_mutex); |
896 | 896 | ||
897 | if (!ch->bound) | ||
898 | goto release; | ||
899 | |||
900 | if (!gk20a_channel_as_bound(ch)) | 897 | if (!gk20a_channel_as_bound(ch)) |
901 | goto unbind; | 898 | goto unbind; |
902 | 899 | ||
@@ -985,7 +982,6 @@ unbind: | |||
985 | 982 | ||
986 | mutex_unlock(&g->dbg_sessions_lock); | 983 | mutex_unlock(&g->dbg_sessions_lock); |
987 | 984 | ||
988 | release: | ||
989 | /* make sure we catch accesses of unopened channels in case | 985 | /* make sure we catch accesses of unopened channels in case |
990 | * there's non-refcounted channel pointers hanging around */ | 986 | * there's non-refcounted channel pointers hanging around */ |
991 | ch->g = NULL; | 987 | ch->g = NULL; |