drm: remove unreachable code in drm_sysfs.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Tuesday, May 5, 2009 - 8:59 pm

Gitweb:     http://git.kernel.org/linus/400138bc8b9fca66d7d40511eaed2dc3a75426c8
Commit:     400138bc8b9fca66d7d40511eaed2dc3a75426c8
Parent:     59738d5c974d81b566cb53c203f5db268b7b3545
Author:     Jonas Bonn <jonas@southpole.se>
AuthorDate: Fri Apr 24 15:06:36 2009 +1000
Committer:  Dave Airlie <airlied@redhat.com>
CommitDate: Fri Apr 24 15:06:36 2009 +1000

    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>
---
 drivers/gpu/drm/drm_sysfs.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c
index 022876a..8f93729 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;
 }
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
drm: remove unreachable code in drm_sysfs.c, Linux Kernel Mailing ..., (Tue May 5, 8:59 pm)