mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
module: remove redundant module_sysfs_initialized variable
The variable module_sysfs_initialized is used for checking whether
module_kset has been initialized. Checking module_kset itself works
just fine for that.
This is a leftover from commit 7405c1e15e ("kset: convert /sys/module
to use kset_create").
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
[mcgrof: adjusted commit log as suggested by Christophe Leroy]
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
This commit is contained in:
committed by
Luis Chamberlain
parent
eb037f16f7
commit
3cd60866d4
@@ -940,7 +940,6 @@ static const struct kset_uevent_ops module_uevent_ops = {
|
||||
};
|
||||
|
||||
struct kset *module_kset;
|
||||
int module_sysfs_initialized;
|
||||
|
||||
static void module_kobj_release(struct kobject *kobj)
|
||||
{
|
||||
@@ -964,7 +963,6 @@ static int __init param_sysfs_init(void)
|
||||
__FILE__, __LINE__);
|
||||
return -ENOMEM;
|
||||
}
|
||||
module_sysfs_initialized = 1;
|
||||
|
||||
version_sysfs_builtin();
|
||||
param_sysfs_builtin();
|
||||
|
||||
Reference in New Issue
Block a user