aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_auth.c
diff options
context:
space:
mode:
authorDavid Herrmann2015-05-04 16:05:12 +0200
committerDaniel Vetter2015-05-05 09:40:50 +0200
commitacab18b5c3a7025640abc84ace5e94c76ebd3d10 (patch)
tree7307d2b13c0fd0c7a061bdf6c48ae96da648a8ac /drivers/gpu/drm/drm_auth.c
parented1817036bd6d83829039543c9fe4aa94acc7c39 (diff)
drm: drop unused 'magicfree' list
This list is write-only. It's never used for read-access, so no reason to keep it around. Drop it! Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_auth.c')
-rw-r--r--drivers/gpu/drm/drm_auth.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_auth.c b/drivers/gpu/drm/drm_auth.c
index fc8e8aaa34fb..8a37524d0867 100644
--- a/drivers/gpu/drm/drm_auth.c
+++ b/drivers/gpu/drm/drm_auth.c
@@ -37,7 +37,6 @@
#include "drm_internal.h"
struct drm_magic_entry {
- struct list_head head;
struct drm_hash_item hash_item;
struct drm_file *priv;
};
@@ -93,7 +92,6 @@ static int drm_add_magic(struct drm_master *master, struct drm_file *priv,
entry->hash_item.key = (unsigned long)magic;
mutex_lock(&dev->struct_mutex);
drm_ht_insert_item(&master->magiclist, &entry->hash_item);
- list_add_tail(&entry->head, &master->magicfree);
mutex_unlock(&dev->struct_mutex);
return 0;
@@ -123,7 +121,6 @@ int drm_remove_magic(struct drm_master *master, drm_magic_t magic)
}
pt = drm_hash_entry(hash, struct drm_magic_entry, hash_item);
drm_ht_remove_item(&master->magiclist, hash);
- list_del(&pt->head);
mutex_unlock(&dev->struct_mutex);
kfree(pt);