[BSD] Remove superfluous recursive locking in drm_add_magic.
parent
e45f95a03b
commit
200ac59573
|
@ -80,7 +80,6 @@ static int drm_add_magic(struct drm_device *dev, drm_file_t *priv,
|
||||||
entry->priv = priv;
|
entry->priv = priv;
|
||||||
entry->next = NULL;
|
entry->next = NULL;
|
||||||
|
|
||||||
DRM_LOCK();
|
|
||||||
if (dev->magiclist[hash].tail) {
|
if (dev->magiclist[hash].tail) {
|
||||||
dev->magiclist[hash].tail->next = entry;
|
dev->magiclist[hash].tail->next = entry;
|
||||||
dev->magiclist[hash].tail = 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].head = entry;
|
||||||
dev->magiclist[hash].tail = entry;
|
dev->magiclist[hash].tail = entry;
|
||||||
}
|
}
|
||||||
DRM_UNLOCK();
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue