summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_sysfs.c
diff options
context:
space:
mode:
authorJonas Bonn <jonas@southpole.se>2009-04-24 07:06:36 +0200
committerDave Airlie <airlied@redhat.com>2009-04-24 07:06:36 +0200
commit400138bc8b9fca66d7d40511eaed2dc3a75426c8 (patch)
tree0f94e7ad9a1aa750cb787317a276de74e25fb559 /drivers/gpu/drm/drm_sysfs.c
parentdrm: add control node checks missing from kms merge (diff)
downloadlinux-400138bc8b9fca66d7d40511eaed2dc3a75426c8.tar.xz
linux-400138bc8b9fca66d7d40511eaed2dc3a75426c8.zip
drm: remove unreachable code in drm_sysfs.c
This code was never going to get called in there. Signed-off-by: Jonas Bonn <jonas@southpole.se> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_sysfs.c')
-rw-r--r--drivers/gpu/drm/drm_sysfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c
index 022876ae34f0..8f9372921f82 100644
--- a/drivers/gpu/drm/drm_sysfs.c
+++ b/drivers/gpu/drm/drm_sysfs.c
@@ -489,9 +489,7 @@ int drm_sysfs_device_add(struct drm_minor *minor)
return 0;
- device_unregister(&minor->kdev);
err_out:
-
return err;
}