diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-10-04 13:53:39 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-10-09 07:55:32 +0200 |
commit | fc6ff1935b550bdf525e0caa5ef0894010375414 (patch) | |
tree | 29c0cea9e21f7f210930ebc39148fa94bfa553df /drivers/gpu/drm/drm_context.c | |
parent | drm: Kill unused stuff from struct drm_device (diff) | |
download | linux-fc6ff1935b550bdf525e0caa5ef0894010375414.tar.xz linux-fc6ff1935b550bdf525e0caa5ef0894010375414.zip |
drm: Kill ctx_count from struct drm_device
The only user of ctx_count is the via driver, and we can replace that
use with list_is_singular().
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
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, mutex_lock(&dev->ctxlist_mutex); list_add(&ctx_entry->head, &dev->ctxlist); - ++dev->ctx_count; mutex_unlock(&dev->ctxlist_mutex); return 0; @@ -432,7 +431,6 @@ int drm_rmctx(struct drm_device *dev, void *data, if (pos->handle == ctx->handle) { list_del(&pos->head); kfree(pos); - --dev->ctx_count; } } } |