stm class: Clean up stp_configfs_init

Minor code shortening, no functional changes.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Tested-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Alexander Shishkin 2018-10-05 15:42:53 +03:00 committed by Greg Kroah-Hartman
parent 25e3c0062a
commit e967b8bdd4
1 changed files with 1 additions and 5 deletions

View File

@ -461,13 +461,9 @@ void stp_policy_node_put(struct stp_policy_node *policy_node)
int __init stp_configfs_init(void)
{
int err;
config_group_init(&stp_policy_subsys.su_group);
mutex_init(&stp_policy_subsys.su_mutex);
err = configfs_register_subsystem(&stp_policy_subsys);
return err;
return configfs_register_subsystem(&stp_policy_subsys);
}
void __exit stp_configfs_exit(void)