[BSD] Remove superfluous recursive locking in drm_add_magic.

main
Owain Ainsworth 2008-05-27 14:59:38 -07:00 committed by Eric Anholt
parent e45f95a03b
commit 200ac59573
1 changed files with 0 additions and 2 deletions

View File

@ -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;
}