diff options
Diffstat (limited to 'drivers/gpu/drm/drm_context.c')
-rw-r--r-- | drivers/gpu/drm/drm_context.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_context.c b/drivers/gpu/drm/drm_context.c index 224ff965bcf7..a4b017b6849e 100644 --- a/drivers/gpu/drm/drm_context.c +++ b/drivers/gpu/drm/drm_context.c | |||
@@ -334,7 +334,6 @@ int drm_addctx(struct drm_device *dev, void *data, | |||
334 | 334 | ||
335 | mutex_lock(&dev->ctxlist_mutex); | 335 | mutex_lock(&dev->ctxlist_mutex); |
336 | list_add(&ctx_entry->head, &dev->ctxlist); | 336 | list_add(&ctx_entry->head, &dev->ctxlist); |
337 | ++dev->ctx_count; | ||
338 | mutex_unlock(&dev->ctxlist_mutex); | 337 | mutex_unlock(&dev->ctxlist_mutex); |
339 | 338 | ||
340 | return 0; | 339 | return 0; |
@@ -432,7 +431,6 @@ int drm_rmctx(struct drm_device *dev, void *data, | |||
432 | if (pos->handle == ctx->handle) { | 431 | if (pos->handle == ctx->handle) { |
433 | list_del(&pos->head); | 432 | list_del(&pos->head); |
434 | kfree(pos); | 433 | kfree(pos); |
435 | --dev->ctx_count; | ||
436 | } | 434 | } |
437 | } | 435 | } |
438 | } | 436 | } |