diff options
Diffstat (limited to 'sys/dev/pci/drm/drm_lock.c')
-rw-r--r-- | sys/dev/pci/drm/drm_lock.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/dev/pci/drm/drm_lock.c b/sys/dev/pci/drm/drm_lock.c index 17552372f37..d949de2ef38 100644 --- a/sys/dev/pci/drm/drm_lock.c +++ b/sys/dev/pci/drm/drm_lock.c @@ -154,7 +154,6 @@ int drm_unlock(struct drm_device *dev, void *data, struct drm_file *file_priv) { struct drm_lock *lock = data; - void (*func)(struct drm_device *); if (lock->context == DRM_KERNEL_CONTEXT) { DRM_ERROR("Process %d using kernel context %d\n", @@ -168,13 +167,6 @@ drm_unlock(struct drm_device *dev, void *data, struct drm_file *file_priv) _DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock) != lock->context) return EINVAL; - mtx_enter(&dev->tsk_lock); - func = dev->locked_task_call; - dev->locked_task_call = NULL; - mtx_leave(&dev->tsk_lock); - if (func != NULL) - (*func)(dev); - if (drm_lock_free(&dev->lock, lock->context)) { DRM_ERROR("\n"); } |