summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Noland <rnoland@2hip.net>2009-02-23 20:22:44 -0600
committerRobert Noland <rnoland@2hip.net>2009-02-23 20:22:44 -0600
commit9d402905c07a38e1eb327db96ae561de7930f616 (patch)
tree78dac00fa7ff48fa0bf9c9b3bf1e9382bad6dab5
parentd6c97868361da48d13a5fe7fe106d67a64969ab1 (diff)
FreeBSD: There is no compelling reason to hold the lock here.
When I was lock profiling, this was high up on the list and I see no reason to do it.
-rw-r--r--bsd-core/drm_drv.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bsd-core/drm_drv.c b/bsd-core/drm_drv.c
index afcad193..fc8e8149 100644
--- a/bsd-core/drm_drv.c
+++ b/bsd-core/drm_drv.c
@@ -651,9 +651,7 @@ int drm_ioctl(struct cdev *kdev, u_long cmd, caddr_t data, int flags,
int is_driver_ioctl = 0;
struct drm_file *file_priv;
- DRM_LOCK();
retcode = devfs_get_cdevpriv((void **)&file_priv);
- DRM_UNLOCK();
if (retcode != 0) {
DRM_ERROR("can't find authenticator\n");
return EINVAL;