summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-09-10 02:09:57 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-09-10 02:09:57 +0000
commitfd80257e2ebe4148c596e26a045b325e35353afc (patch)
treea0a074c14b54af1f8632667844b29ef90c0ee2d6 /sys
parenta1989a736aaeb2ec63de4b4708b489a0eddedf6f (diff)
Kill the max_context member of the softc, it does nothing useful.
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++) {