diff options
author | 2008-09-06 14:48:53 +0000 | |
---|---|---|
committer | 2008-09-06 14:48:53 +0000 | |
commit | eb8795155f09118d1aac291dfb144116f5586643 (patch) | |
tree | 2a8d19430bbab1c1a43f8b93716d1f1f1e2b894b | |
parent | remove duplicate definition of OPENSSL_DSA_MAX_MODULUS_BITS spotted (diff) | |
download | wireguard-openbsd-eb8795155f09118d1aac291dfb144116f5586643.tar.xz wireguard-openbsd-eb8795155f09118d1aac291dfb144116f5586643.zip |
Something else that nothing calls.
-rw-r--r-- | sys/dev/pci/drm/drm_ioctl.c | 23 |
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 |