summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2008-09-10 02:09:56 +0000
committeroga <oga@openbsd.org>2008-09-10 02:09:56 +0000
commit1b515db07f51331215fdb908f399b442209a6e36 (patch)
tree2236439c9cfc73b028409ab269ae921747c6d184
parentdo not try to print $$ when it has not been set (diff)
downloadwireguard-openbsd-1b515db07f51331215fdb908f399b442209a6e36.tar.xz
wireguard-openbsd-1b515db07f51331215fdb908f399b442209a6e36.zip
Kill the max_context member of the softc, it does nothing useful.
-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++) {