Commit e967b8bd authored by Alexander Shishkin's avatar Alexander Shishkin Committed by Greg Kroah-Hartman

stm class: Clean up stp_configfs_init

Minor code shortening, no functional changes.
Signed-off-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
Tested-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 25e3c006
...@@ -461,13 +461,9 @@ void stp_policy_node_put(struct stp_policy_node *policy_node) ...@@ -461,13 +461,9 @@ void stp_policy_node_put(struct stp_policy_node *policy_node)
int __init stp_configfs_init(void) int __init stp_configfs_init(void)
{ {
int err;
config_group_init(&stp_policy_subsys.su_group); config_group_init(&stp_policy_subsys.su_group);
mutex_init(&stp_policy_subsys.su_mutex); mutex_init(&stp_policy_subsys.su_mutex);
err = configfs_register_subsystem(&stp_policy_subsys); return configfs_register_subsystem(&stp_policy_subsys);
return err;
} }
void __exit stp_configfs_exit(void) void __exit stp_configfs_exit(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment