aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_fops.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-12-11 05:35:09 -0500
committerDave Airlie <airlied@redhat.com>2013-12-17 20:42:13 -0500
commit5952fba501b928f214f64a7a9c461ae2cd5c3f45 (patch)
treed558d934a882505603bb266211fd798c9961ba0b /drivers/gpu/drm/drm_fops.c
parent43d1337cbe087ed24ffceadfd5ac311b6a0e4bfa (diff)
drm: Kill file_priv->ioctl_count tracking
It's racy, and it's only used in debugfs. There are simpler ways to know whether something is going on (like looking at dmesg with full debugging enabled). And they're all much more useful. So let's just rip this out. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_fops.c')
-rw-r--r--drivers/gpu/drm/drm_fops.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c
index 97ebc828de5b..330f3dd8e9d0 100644
--- a/drivers/gpu/drm/drm_fops.c
+++ b/drivers/gpu/drm/drm_fops.c
@@ -232,7 +232,6 @@ static int drm_open_helper(struct inode *inode, struct file *filp,
232 goto out_put_pid; 232 goto out_put_pid;
233 } 233 }
234 234
235 priv->ioctl_count = 0;
236 /* for compatibility root is always authenticated */ 235 /* for compatibility root is always authenticated */
237 priv->always_authenticated = capable(CAP_SYS_ADMIN); 236 priv->always_authenticated = capable(CAP_SYS_ADMIN);
238 priv->authenticated = priv->always_authenticated; 237 priv->authenticated = priv->always_authenticated;