diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2011-10-10 19:34:57 +0200 |
---|---|---|
committer | Eugeni Dodonov <eugeni.dodonov@intel.com> | 2012-02-10 18:01:43 -0200 |
commit | 450fa61587358391cb3213014d7d1180841a25ff (patch) | |
tree | 1927d10cde85595a555a45bc0034b4c9eb75c0ba | |
parent | 8766c6802d1f4aedb7dad26ee82bc5e97a145295 (diff) |
drm: simplify error printing in drm_debugfs_create_files
There's no need to copy d_name.name.
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
-rw-r--r-- | drivers/gpu/drm/drm_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c index 8ac18c46aa8..8e60cc3afff 100644 --- a/drivers/gpu/drm/drm_debugfs.c +++ b/drivers/gpu/drm/drm_debugfs.c @@ -109,7 +109,7 @@ int drm_debugfs_create_files(struct drm_info_list *files, int count, root, tmp, &drm_debugfs_fops); if (!ent) { DRM_ERROR("Cannot create /sys/kernel/debug/dri/%s/%s\n", - name, files[i].name); + root->d_name.name, files[i].name); kfree(tmp); ret = -1; goto fail; |