Skip to content

Commit

Permalink
drm: fix error message about failed procfs file registration
Browse files Browse the repository at this point in the history
It printed garbage.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Marcin Slusarz authored and Dave Airlie committed Oct 18, 2011
1 parent 6ddddfe commit a0f9219
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/gpu/drm/drm_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ int drm_proc_create_files(struct drm_info_list *files, int count,
struct drm_device *dev = minor->dev;
struct proc_dir_entry *ent;
struct drm_info_node *tmp;
char name[64];
int i, ret;

for (i = 0; i < count; i++) {
Expand All @@ -118,7 +117,7 @@ int drm_proc_create_files(struct drm_info_list *files, int count,
&drm_proc_fops, tmp);
if (!ent) {
DRM_ERROR("Cannot create /proc/dri/%s/%s\n",
name, files[i].name);
root->name, files[i].name);
list_del(&tmp->list);
kfree(tmp);
ret = -1;
Expand Down

0 comments on commit a0f9219

Please sign in to comment.