remove some netbsd specific code that does nothing.
This commit is contained in:
parent
2a8f255ae1
commit
992e698d04
3
sys/external/bsd/drm/dist/bsd-core/drmP.h
vendored
3
sys/external/bsd/drm/dist/bsd-core/drmP.h
vendored
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user