summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-09-06 14:48:54 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-09-06 14:48:54 +0000
commitfc5e17923ebefb099ac46271f72dd11f621d3cf7 (patch)
tree66dd4c473b061ff87fc791576fb7086406b73703 /sys
parent6b7a8d502d157796d833437d51c9f494a3bd893b (diff)
Something else that nothing calls.
Diffstat (limited to 'sys')
-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