summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@stephanie.cybernetseraph.org>2008-05-27 14:59:38 -0700
committerEric Anholt <eric@anholt.net>2008-05-27 14:59:38 -0700
commit200ac59573b43abd112d27a1ddda3c124ba9db2a (patch)
tree4ae31647f1863c8317f82c826eb9b9a25967484c
parente45f95a03b7242115030a74ab27b142bc5c004c4 (diff)
[BSD] Remove superfluous recursive locking in drm_add_magic.
-rw-r--r--bsd-core/drm_auth.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bsd-core/drm_auth.c b/bsd-core/drm_auth.c
index 3423e67a..f3aafe44 100644
--- a/bsd-core/drm_auth.c
+++ b/bsd-core/drm_auth.c
@@ -80,7 +80,6 @@ static int drm_add_magic(struct drm_device *dev, drm_file_t *priv,
entry->priv = priv;
entry->next = NULL;
- DRM_LOCK();
if (dev->magiclist[hash].tail) {
dev->magiclist[hash].tail->next = entry;
dev->magiclist[hash].tail = entry;
@@ -88,7 +87,6 @@ static int drm_add_magic(struct drm_device *dev, drm_file_t *priv,
dev->magiclist[hash].head = entry;
dev->magiclist[hash].tail = entry;
}
- DRM_UNLOCK();
return 0;
}