summaryrefslogtreecommitdiffstats
path: root/kernel/params.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2007-12-23 06:18:25 +0100
committerGreg Kroah-Hartman2008-01-25 05:40:39 +0100
commit7a6a41615bfb2f03ce797bc24104c50b42c935e5 (patch)
tree07eccb0b229da186dac531d6407b7b6d2e6dbef0 /kernel/params.c
parentKobject: auto-cleanup on final unref (diff)
downloadkernel-qcow2-linux-7a6a41615bfb2f03ce797bc24104c50b42c935e5.tar.gz
kernel-qcow2-linux-7a6a41615bfb2f03ce797bc24104c50b42c935e5.tar.xz
kernel-qcow2-linux-7a6a41615bfb2f03ce797bc24104c50b42c935e5.zip
Modules: remove unneeded release function
Now that kobjects properly clean up their name structures, no matter if they have a release function or not, we can drop this empty module kobject release function too (it was needed prior to this because of the way we handled static kobject names, we based the fact that if a release function was present, then we could safely free the name string, now we are more smart about things and only free names we have previously set.) Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel/params.c')
-rw-r--r--kernel/params.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/kernel/params.c b/kernel/params.c
index 1078b148ca80..b4da9505f4d2 100644
--- a/kernel/params.c
+++ b/kernel/params.c
@@ -694,18 +694,8 @@ static struct kset_uevent_ops module_uevent_ops = {
struct kset *module_kset;
int module_sysfs_initialized;
-static void module_release(struct kobject *kobj)
-{
- /*
- * Stupid empty release function to allow the memory for the kobject to
- * be properly cleaned up. This will not need to be present for 2.6.25
- * with the upcoming kobject core rework.
- */
-}
-
struct kobj_type module_ktype = {
.sysfs_ops = &module_sysfs_ops,
- .release = module_release,
};
/*