summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/drmP.h2
-rw-r--r--sys/dev/pci/drm/drm_context.c3
2 files changed, 0 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index 413d491ace1..9dfd0941fdb 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -555,8 +555,6 @@ struct drm_device {
struct extent *handle_ext;
drm_map_list_t maplist;
- int max_context;
-
struct drm_lock_data lock; /* Information on hardware lock */
/* DMA queues (contexts) */
diff --git a/sys/dev/pci/drm/drm_context.c b/sys/dev/pci/drm/drm_context.c
index d19b5858f8f..3647f1f9c4a 100644
--- a/sys/dev/pci/drm/drm_context.c
+++ b/sys/dev/pci/drm/drm_context.c
@@ -71,8 +71,6 @@ drm_ctxbitmap_next(struct drm_device *dev)
set_bit(bit, dev->ctx_bitmap);
DRM_DEBUG("drm_ctxbitmap_next bit : %d\n", bit);
- if ((bit+1) > dev->max_context)
- dev->max_context = (bit+1);
DRM_UNLOCK();
return bit;
}
@@ -89,7 +87,6 @@ drm_ctxbitmap_init(struct drm_device *dev)
return (ENOMEM);
DRM_LOCK();
dev->ctx_bitmap = bitmap;
- dev->max_context = -1;
DRM_UNLOCK();
for (i = 0; i < DRM_RESERVED_CONTEXTS; i++) {