drm/legacy: remove some legacy lock struct members
This removes these unless legacy is enabled. The lock count init is unneeded anyways since it's kzalloc. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -128,7 +128,6 @@ struct drm_file *drm_file_alloc(struct drm_minor *minor)
|
||||
|
||||
/* for compatibility root is always authenticated */
|
||||
file->authenticated = capable(CAP_SYS_ADMIN);
|
||||
file->lock_count = 0;
|
||||
|
||||
INIT_LIST_HEAD(&file->lhead);
|
||||
INIT_LIST_HEAD(&file->fbs);
|
||||
|
||||
Reference in New Issue
Block a user