summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/drm_ioctl.c')
-rw-r--r--sys/dev/pci/drm/drm_ioctl.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/dev/pci/drm/drm_ioctl.c b/sys/dev/pci/drm/drm_ioctl.c
index ed3611e4b51..d351bf44f79 100644
--- a/sys/dev/pci/drm/drm_ioctl.c
+++ b/sys/dev/pci/drm/drm_ioctl.c
@@ -184,28 +184,7 @@ drm_getmap(struct drm_device *dev, void *data, struct drm_file *file_priv)
int
drm_getclient(struct drm_device *dev, void *data, struct drm_file *file_priv)
{
- struct drm_client *client = data;
- struct drm_file *pt;
- int idx;
- int i = 0;
-
- idx = client->idx;
- DRM_LOCK();
- TAILQ_FOREACH(pt, &dev->files, link) {
- if (i==idx) {
- client->auth = pt->authenticated;
- client->pid = pt->pid;
- client->uid = pt->uid;
- client->magic = pt->magic;
- client->iocs = pt->ioctl_count;
- DRM_UNLOCK();
- return 0;
- }
- i++;
- }
- DRM_UNLOCK();
-
- return EINVAL;
+ return (EINVAL);
}
int