diff options
Diffstat (limited to 'drivers/gpu/drm/drm_proc.c')
-rw-r--r-- | drivers/gpu/drm/drm_proc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_proc.c b/drivers/gpu/drm/drm_proc.c index 9e5b07efebb7..0f3c4e3cafc3 100644 --- a/drivers/gpu/drm/drm_proc.c +++ b/drivers/gpu/drm/drm_proc.c | |||
@@ -95,7 +95,6 @@ int drm_proc_create_files(struct drm_info_list *files, int count, | |||
95 | struct drm_device *dev = minor->dev; | 95 | struct drm_device *dev = minor->dev; |
96 | struct proc_dir_entry *ent; | 96 | struct proc_dir_entry *ent; |
97 | struct drm_info_node *tmp; | 97 | struct drm_info_node *tmp; |
98 | char name[64]; | ||
99 | int i, ret; | 98 | int i, ret; |
100 | 99 | ||
101 | for (i = 0; i < count; i++) { | 100 | for (i = 0; i < count; i++) { |
@@ -118,7 +117,7 @@ int drm_proc_create_files(struct drm_info_list *files, int count, | |||
118 | &drm_proc_fops, tmp); | 117 | &drm_proc_fops, tmp); |
119 | if (!ent) { | 118 | if (!ent) { |
120 | DRM_ERROR("Cannot create /proc/dri/%s/%s\n", | 119 | DRM_ERROR("Cannot create /proc/dri/%s/%s\n", |
121 | name, files[i].name); | 120 | root->name, files[i].name); |
122 | list_del(&tmp->list); | 121 | list_del(&tmp->list); |
123 | kfree(tmp); | 122 | kfree(tmp); |
124 | ret = -1; | 123 | ret = -1; |