From fd80257e2ebe4148c596e26a045b325e35353afc Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Wed, 10 Sep 2008 02:09:57 +0000 Subject: Kill the max_context member of the softc, it does nothing useful. --- sys/dev/pci/drm/drmP.h | 2 -- sys/dev/pci/drm/drm_context.c | 3 --- 2 files changed, 5 deletions(-) (limited to 'sys') 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++) { -- cgit v1.2.3