diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-02-14 21:03:39 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-16 15:19:17 -0800 |
commit | b92be9f1ecd3c8b16e9bb22d55bb97b3d89f091a (patch) | |
tree | 6f5b561fd2268214d3b511f6dc8e0c1a598f24b7 /drivers/base | |
parent | 1350770112bd9bd5696cb52deb712370012d80e0 (diff) | |
download | kernel_samsung_smdk4412-b92be9f1ecd3c8b16e9bb22d55bb97b3d89f091a.zip kernel_samsung_smdk4412-b92be9f1ecd3c8b16e9bb22d55bb97b3d89f091a.tar.gz kernel_samsung_smdk4412-b92be9f1ecd3c8b16e9bb22d55bb97b3d89f091a.tar.bz2 |
Driver: remove redundant kobject_unregister checks
Here is a patch that removes all redundant kobject_unregister argument checks.
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/class.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/base/class.c b/drivers/base/class.c index 96def1d..1417e5c 100644 --- a/drivers/base/class.c +++ b/drivers/base/class.c @@ -163,8 +163,7 @@ int class_register(struct class * cls) void class_unregister(struct class * cls) { pr_debug("device class '%s': unregistering\n", cls->name); - if (cls->virtual_dir) - kobject_unregister(cls->virtual_dir); + kobject_unregister(cls->virtual_dir); remove_class_attrs(cls); subsystem_unregister(&cls->subsys); } |