From 200ac59573b43abd112d27a1ddda3c124ba9db2a Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Tue, 27 May 2008 14:59:38 -0700 Subject: [BSD] Remove superfluous recursive locking in drm_add_magic. --- bsd-core/drm_auth.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'bsd-core') 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; } -- cgit v1.2.3