remove some netbsd specific code that does nothing.

This commit is contained in:
mrg 2009-08-07 22:51:04 +00:00
parent 2a8f255ae1
commit 992e698d04
2 changed files with 1 additions and 7 deletions

View File

@ -582,9 +582,6 @@ struct drm_file {
int minor;
pid_t pid;
uid_t uid;
#if defined(__NetBSD__)
int refs;
#endif
drm_magic_t magic;
unsigned long ioctl_count;
void *driver_priv;

View File

@ -70,9 +70,7 @@ int drm_open_helper(dev_t kdev, int flags, int fmt, struct proc *p,
DRM_LOCK();
priv = drm_find_file_by_proc(dev, p);
if (priv) {
priv->refs++;
} else {
if (!priv) {
priv = malloc(sizeof(*priv), DRM_MEM_FILES, M_NOWAIT | M_ZERO);
if (priv == NULL) {
DRM_UNLOCK();
@ -81,7 +79,6 @@ int drm_open_helper(dev_t kdev, int flags, int fmt, struct proc *p,
priv->uid = kauth_cred_getsvuid(p->p_cred);
priv->pid = p->p_pid;
priv->refs = 1;
priv->minor = m;
priv->ioctl_count = 0;