module: remove redundant module_sysfs_initialized variable
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Thu, 29 Sep 2022 12:10:39 +0000 (14:10 +0200)
committerLuis Chamberlain <mcgrof@kernel.org>
Fri, 11 Nov 2022 18:19:52 +0000 (10:19 -0800)
commit3cd60866d46050d14734cbbac41b00c8d3e51d61
tree02ecdf08a806b0da57fe5cf6e04354af0273f07d
parenteb037f16f7e843722db5f0275d84b3f738d5649d
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 7405c1e15edf ("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>
include/linux/module.h
kernel/module/sysfs.c
kernel/params.c